Skip to content

Instantly share code, notes, and snippets.

@brasizza
Last active December 15, 2020 01:54
Show Gist options
  • Save brasizza/34e73b6a1c9e48483eae033453ff9a7f to your computer and use it in GitHub Desktop.
Save brasizza/34e73b6a1c9e48483eae033453ff9a7f to your computer and use it in GitHub Desktop.
auth.php
<?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