I have implemented Multi-Auth in my laravel 5.4 project, but whenever I try to login from another device I get this error.
ErrorException in Response.php line 386:Header may not contain more than a single header, new line detected
Now I have tried looking into other similiar questions in this website but none of them match what I'm doing in the login controller.
Here is my login controller :
class LoginController extends Controller
{
use AuthenticatesUsers;
public function __construct()
{
$this->middleware('guest', ['except' => 'logout']);
}
public function username()
{
return 'mobile_no';
}
protected function redirectTo( )
{
$notification = array(
'message' => 'Welcome Admin!',
'alert_type' => 'info',
'title' => Auth::user()->name
);
return redirect('/home')->with('notification', $notification);
}
}
Whats wrong with my redirecTo() function?