Skip to content

Instantly share code, notes, and snippets.

@farindra
Last active April 3, 2021 13:47
Show Gist options
  • Save farindra/fb56e64fa6e194a526652638f9adc5be to your computer and use it in GitHub Desktop.
Save farindra/fb56e64fa6e194a526652638f9adc5be to your computer and use it in GitHub Desktop.
Lumen Passport auth config
<?php
return [
'defaults' => [
'guard' => env('AUTH_GUARD', 'api'),
'passwords' => 'users',
],
'guards' => [
'api' => [
'driver' => 'jwt',
'provider' => 'users'
],
],
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Models\User::class #state your user model
]
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment