diff --git a/composer.json b/composer.json index d80f32c..38b4c71 100644 --- a/composer.json +++ b/composer.json @@ -25,10 +25,10 @@ "php": "^7.1", "ext-json": "*", "cboden/ratchet": "^0.4.1", - "illuminate/console": "5.6.*|5.7.*", - "illuminate/http": "5.6.*|5.7.*", - "illuminate/routing": "5.6.*|5.7.*", - "illuminate/support": "5.6.*|5.7.*", + "illuminate/console": "5.7.*", + "illuminate/http": "5.7.*", + "illuminate/routing": "5.7.*", + "illuminate/support": "5.7.*", "symfony/http-kernel": "~4.0", "symfony/psr-http-message-bridge": "^1.1" }, diff --git a/config/websockets.php b/config/websockets.php index 6ca0917..8e1d003 100644 --- a/config/websockets.php +++ b/config/websockets.php @@ -1,14 +1,10 @@ '/websockets', - /* * TODO: add the laravel style comment here */ @@ -49,6 +45,7 @@ return [ */ 'clients' => [ [ + 'name' => env('APP_NAME'), 'app_id' => env('WEBSOCKETS_APP_ID'), 'app_key' => env('WEBSOCKETS_APP_KEY'), 'app_secret' => env('WEBSOCKETS_APP_SECRET') @@ -63,4 +60,20 @@ return [ * `ClientProvier` interface. */ 'client_provider' => ConfigClientProvider::class, + + 'dashboard' => [ + + /* + * Path for the Websockets debug console + */ + 'path' => '/websockets', + + /* + * Middleware that will be applied to the dashboard routes. + */ + 'middleware' => [ + Authorize::class, + ], + + ] ]; \ No newline at end of file diff --git a/resources/views/console.blade.php b/resources/views/console.blade.php index a9bb95f..e3366f4 100644 --- a/resources/views/console.blade.php +++ b/resources/views/console.blade.php @@ -18,12 +18,11 @@ WebSockets Console
@@ -51,9 +50,7 @@