Last active
April 3, 2021 13:47
-
-
Save farindra/fb56e64fa6e194a526652638f9adc5be to your computer and use it in GitHub Desktop.
Lumen Passport auth config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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