Created
June 20, 2020 12:43
-
-
Save blogcacanid/eb2a1730426da7f24f5ab4308736ac81 to your computer and use it in GitHub Desktop.
auth.php Rest API Dengan JSON Web Token Lumen 7
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' => 'api', | |
'passwords' => 'users', | |
], | |
'guards' => [ | |
'api' => [ | |
'driver' => 'jwt', | |
'provider' => 'users', | |
], | |
], | |
'providers' => [ | |
'users' => [ | |
'driver' => 'eloquent', | |
'model' => \App\User::class | |
] | |
] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment