No ideas?
Mar 4, 2017
4
Level 1
Lumen 5.4 - Auth guard driver [api] is not defined.
Hi there,
I have setup a standard Lumen installation and all works fine until I activate Authentication (uncommenting 2 parts in app.php) and try using it in my Controller ($this->middleware('auth', ['only' => [ 'index', 'getById' ]]);)
Now. Every time I call one of the secured resources, I get an error as follows:
InvalidArgumentException in AuthManager.php line 99: Auth guard driver [api] is not defined.
I have searched the web, but all suggestions are pretty much focused on previous versions of Lumen such as 5.2. Since I use Lumen 5.4 I need your help.
My auth.php is unmodified and as it comes with Lumen 5.4
Help is really appreciated since I'm stuck now.
Cheers, Uwe
Please or to participate in this conversation.