Last active
December 15, 2020 01:54
-
-
Save brasizza/34e73b6a1c9e48483eae033453ff9a7f to your computer and use it in GitHub Desktop.
auth.php
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 | |
use App\Models\User; | |
return [ | |
'defaults' => [ | |
'guard' => 'api', | |
'passwords' => 'users', | |
], | |
'guards' => [ | |
'api' => [ | |
'driver' => 'jwt', | |
'provider' => 'users', | |
], | |
], | |
'providers' => [ | |
'users' => [ | |
'driver' => 'eloquent', | |
'model' => User::class | |
] | |
] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment