我正在為管理員創建自定義防護,但收到錯誤“未定義身份驗證防護”我嘗試過“php artisan config:clear 和 php artisan config 緩存”,但仍然是錯誤。我想知道我做錯了什么。這是我的身份驗證配置 <?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', ],您可以在此處定義密碼確認前的秒數 | 超時,系統會提示用戶通過 | 重新輸入密碼。確認屏幕。默認情況下,超時時間為三個小時。| */
添加回答
舉報
0/150
提交
取消