我想使用Laravel 5.0进行身份验证,但我输入的是真实数据或错误数据会给出错误
public function girispost(){
//return Request::input('email') .Request::input('password');
// Auth::logout();`
if (Auth::attempt(['email' =>
Request::input('email'), 'password' => Request::input('password')])) {
return "giriş başarılı";
} else {
return "hatalı";
}
}
用户表方案