我正在為管理員創(chuàng)建自定義防護(hù),但收到錯(cuò)誤“未定義身份驗(yàn)證防護(hù)”我嘗試過(guò)“php artisan config:clear 和 php artisan config 緩存”,但仍然是錯(cuò)誤。我想知道我做錯(cuò)了什么。這是我的身份驗(yàn)證配置 <?phpreturn [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for your application. You may change these defaults | as required, but they're a perfect start for most applications. | */ 'defaults' => [ 'guard' => 'web', 'passwords' => 'users', ], /* |-------------------------------------------------------------------------- | Authentication Guards |-------------------------------------------------------------------------- | | Next, you may define every authentication guard for your application. | Of course, a great default configuration has been defined for you | here which uses session storage and the Eloquent user provider. | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | Supported: "session", "token" | */ 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'token', 'provider' => 'users', 'hash' => false, ], 'SuperAdmin' => [ 'driver' => 'session', 'provider' => 'admins', ],您可以在此處定義密碼確認(rèn)前的秒數(shù) | 超時(shí),系統(tǒng)會(huì)提示用戶通過(guò) | 重新輸入密碼。確認(rèn)屏幕。默認(rèn)情況下,超時(shí)時(shí)間為三個(gè)小時(shí)。| */
身份驗(yàn)證守衛(wèi) [:superAdmin] 未定義
開(kāi)心每一天1111
2023-06-24 16:14:02