Take a look at this here and ensure you've completed it all, if required: https://github.com/laravel/passport/blob/master/UPGRADE.md
Nov 6, 2019
5
Level 1
"Auth driver [passport] for guard [api] is not defined" error with Passport v8
Hello,
I'm trying to update Laravel Passport to v8 but I got this error in my test
1) My test
InvalidArgumentException: Auth driver [passport] for guard [api] is not defined.
.../vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php:97
.../vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php:68
.../vendor/laravel/passport/src/Passport.php:409
...Test.php:26
On this line
Passport::actingAs($user);
This was working before, I tried to understand when it could come from but can't find.
I have this in my config/auth.php file
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'passport',
'provider' => 'users',
],
],
Thanks for your help
Please or to participate in this conversation.