简体   繁体   中英

user login auth in lumen

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?

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,
]);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM