Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

[2.x] Customize dashboard domain and path using env vars #671

Merged
merged 2 commits into from
Jan 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions config/websockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

'port' => env('LARAVEL_WEBSOCKETS_PORT', 6001),

'path' => 'laravel-websockets',
'domain' => env('LARAVEL_WEBSOCKETS_DOMAIN'),

'path' => env('LARAVEL_WEBSOCKETS_PATH', 'laravel-websockets'),

'middleware' => [
'web',
Expand Down Expand Up @@ -71,7 +73,7 @@
'enable_client_messages' => false,
'enable_statistics' => true,
'allowed_origins' => [
//
// env('LARAVEL_WEBSOCKETS_DOMAIN'),
],
],
],
Expand Down
1 change: 1 addition & 0 deletions src/WebSocketsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ protected function registerManagers()
protected function registerDashboardRoutes()
{
Route::group([
'domain' => config('websockets.dashboard.domain'),
'prefix' => config('websockets.dashboard.path'),
'as' => 'laravel-websockets.',
'middleware' => config('websockets.dashboard.middleware', [AuthorizeDashboard::class]),
Expand Down