I am using Sentinel package for advanced authentication in laravel. I can register properly, but when I am going to login then here is an error like - 'The Response content must be a string or object implementing __toString(), "boolean" given.' Please anyone help me.
Here is my routes bellow:
Route::get('/login', 'LoginController@login');
Route::post('/login', 'LoginController@postLogin');
Here is my controller bellow:
public function login(){
return view('authentication.login');
}
public function postLogin(Request $request){
Sentinel::authenticate($request->all());
return Sentinel::check();
}