doukan4039 2016-02-26 09:21
浏览 150

用户在流明中登录auth

i tried to do auth as we usually do in laravel5 but it is showing me following error:

ErrorException in AuthManager.php line 152: Undefined index: provider

after that i tried following link Authentication: index not found: provider

then got following error:

call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Auth\TokenGuard' does not have a method 'attempt'

now i am stuck for this So,what should i do for user signin authentication?

  • 写回答

1条回答 默认 最新

  • duanganleng0577 2016-02-28 13:20
    关注

    If you're using the Auth middleware on your route make sure to uncomment the appropriate line in your bootstrap/app.php file...

    $app->routeMiddleware([
        'auth' => App\Http\Middleware\Authenticate::class,
    ]);
    
    评论

报告相同问题?