I have a problem when changing the default LoginController redirect after login, I\'m getting an ErrorException in Response.php line 339: Header may not
LoginController
ErrorException in Response.php line 339: Header may not
The method redirectTo should return an url path, not the Redirect response.
... protected function redirectTo() { if(\Auth::user()->hasRole('copy')){ return '/copy/dashboardCopy'; } } ...