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
public $redirectTo = '/lender/home'; protected function redirectTo() { if(\Auth::guard('lender')->check()){ $this->redirectTo = '/lender/home'; return $this->redirectTo; } }