I've trying lumen for the first time and I'm attempting to setup authentication.
After following the instructions in the lumen documentation, I see to be getting the following error and I can't figure out what I'm doing wrong;
in AuthManager.php line 152
at Application->Laravel\Lumen\Concerns{closure}('8', 'Undefined index: provider', '/home/webdev/public_html/appdevs/supafanzv2/vendor/illuminate/auth/AuthManager.php', '152', array('name' => 'api', 'config' => array('driver' => 'token'))) in AuthManager.php line 152
at AuthManager->createTokenDriver('api', array('driver' => 'token')) in AuthManager.php line 92
at AuthManager->resolve('api') in AuthManager.php line 70
at AuthManager->guard(null) in Authenticate.php line 38
at Authenticate->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Laravel\Lumen\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in RoutesRequests.php line 621
at Application->sendThroughPipeline(array('App\Http\Middleware\Authenticate'), object(Closure)) in RoutesRequests.php line 382
at Application->dispatch(object(Request)) in RoutesRequests.php line 327
at Application->run(object(Request)) in index.php line 31
I've uncommented the AuthServiceProvider in bootstrap/app.php and left the Authentication middleware unchanged, but of course have uncommented it in the bootstrap/app.php file also
I've setup my database settings in the env file, and create a user table which contains an 'api_key' field to match that required in the AuthServiceProvider->boot() method.