This commit is contained in:
ct
2025-08-10 22:36:50 +08:00
parent d5b5742e62
commit 1d05a7b4e3
5 changed files with 65 additions and 5 deletions

View File

@@ -2,6 +2,21 @@
return [
/*
|--------------------------------------------------------------------------
| Basic Auth
|--------------------------------------------------------------------------
|
| Basic auth credentials for Laravel Horizon.
|
*/
'basic_auth' => [
'username' => env('BASIC_AUTH_USERNAME'),
'password' => env('BASIC_AUTH_PASSWORD'),
],
/*
|--------------------------------------------------------------------------
| Authentication Defaults

View File

@@ -56,7 +56,7 @@
'prefix' => env(
'HORIZON_PREFIX',
Str::slug(env('APP_NAME', 'laravel'), '_').'_horizon:'
Str::slug(env('APP_NAME', 'laravel'), '_') . '_horizon:'
),
/*
@@ -70,7 +70,7 @@
|
*/
'middleware' => ['web'],
'middleware' => ['web', App\Http\Middleware\BasicAuthMiddleware::class],
/*
|--------------------------------------------------------------------------