Auth :: attempt(['email'=> Request :: input('email')不起作用?

时间:2018-10-03 08:36:50

标签: laravel

我想使用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ı";
    }     
}

用户表方案

0 个答案:

没有答案