Add passport package

This commit is contained in:
philipp lang 2023-05-04 00:04:05 +02:00
parent f150abd1ca
commit 2bc576d3f6
4 changed files with 1209 additions and 6 deletions

View File

@ -32,6 +32,7 @@
"inertiajs/inertia-laravel": "^0.2.5", "inertiajs/inertia-laravel": "^0.2.5",
"laravel/framework": "^9.0", "laravel/framework": "^9.0",
"laravel/horizon": "^5.0", "laravel/horizon": "^5.0",
"laravel/passport": "^11.8",
"laravel/scout": "^9.8", "laravel/scout": "^9.8",
"laravel/telescope": "^4.13", "laravel/telescope": "^4.13",
"laravel/tinker": "^2.0", "laravel/tinker": "^2.0",

1204
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,6 @@
use App\User; use App\User;
return [ return [
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Authentication Defaults | Authentication Defaults
@ -40,11 +39,11 @@ return [
'guards' => [ 'guards' => [
'web' => [ 'web' => [
'driver' => 'session', 'driver' => 'session',
'provider' => 'database', 'provider' => 'users',
], ],
'api' => [ 'api' => [
'driver' => 'token', 'driver' => 'passport',
'provider' => 'users', 'provider' => 'users',
'hash' => false, 'hash' => false,
], ],
@ -68,7 +67,7 @@ return [
*/ */
'providers' => [ 'providers' => [
'database' => [ 'users' => [
'driver' => 'eloquent', 'driver' => 'eloquent',
'model' => User::class, 'model' => User::class,
], ],
@ -110,5 +109,4 @@ return [
*/ */
'password_timeout' => 10800, 'password_timeout' => 10800,
]; ];

@ -1 +1 @@
Subproject commit 33875d36fa5bd6fab4147e95f4aa705092f42d93 Subproject commit a41b190cc2509ee940967b6c108a557b0a9c5def