config/auth.php: switch "user" to "admin"
This commit is contained in:
parent
661d1442e7
commit
7a1d37d942
1 changed files with 8 additions and 13 deletions
|
|
@ -14,8 +14,8 @@ return [
|
|||
*/
|
||||
|
||||
'defaults' => [
|
||||
'guard' => 'web',
|
||||
'passwords' => 'users',
|
||||
'guard' => 'admin',
|
||||
'passwords' => 'admins',
|
||||
],
|
||||
|
||||
/*
|
||||
|
|
@ -36,9 +36,9 @@ return [
|
|||
*/
|
||||
|
||||
'guards' => [
|
||||
'web' => [
|
||||
'admin' => [
|
||||
'driver' => 'session',
|
||||
'provider' => 'users',
|
||||
'provider' => 'admins',
|
||||
],
|
||||
],
|
||||
|
||||
|
|
@ -60,15 +60,10 @@ return [
|
|||
*/
|
||||
|
||||
'providers' => [
|
||||
'users' => [
|
||||
'admins' => [
|
||||
'driver' => 'eloquent',
|
||||
'model' => App\Models\User::class,
|
||||
'model' => App\Models\Admin::class,
|
||||
],
|
||||
|
||||
// 'users' => [
|
||||
// 'driver' => 'database',
|
||||
// 'table' => 'users',
|
||||
// ],
|
||||
],
|
||||
|
||||
/*
|
||||
|
|
@ -87,8 +82,8 @@ return [
|
|||
*/
|
||||
|
||||
'passwords' => [
|
||||
'users' => [
|
||||
'provider' => 'users',
|
||||
'admins' => [
|
||||
'provider' => 'admins',
|
||||
'table' => 'password_resets',
|
||||
'expire' => 60,
|
||||
'throttle' => 60,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue