diff --git a/packages/panels/docs/09-configuration.md b/packages/panels/docs/09-configuration.md index 2e29137897..936118dab0 100644 --- a/packages/panels/docs/09-configuration.md +++ b/packages/panels/docs/09-configuration.md @@ -185,21 +185,6 @@ public function panel(Panel $panel): Panel } ``` -## Disabling broadcasting - -By default, broadcasting is enabled for every panel once Laravel Echo is installed and websockets are set up. This means Echo will attempt to connect to your websocket server in every panel. To disable this you can use the `broadcasting()` method: - -```php -use Filament\Panel; - -public function panel(Panel $panel): Panel -{ - return $panel - // ... - ->broadcasting(false); -} -``` - ## Unsaved changes alerts You may alert users if they attempt to navigate away from a page without saving their changes. This is applied on [Create](resources/creating-records) and [Edit](resources/editing-records) pages of a resource, as well as any open action modals. To enable this feature, you can use the `unsavedChangesAlerts()` method: @@ -359,3 +344,18 @@ public function panel(Panel $panel): Panel ], isPersistent: true); } ``` + +## Disabling broadcasting + +By default, Laravel Echo will automatically connect for every panel, if credentials have been set up in the [published `config/filament.php` configuration file](installation#publishing-configuration). To disable this automatic connection in a panel, you can use the `broadcasting(false)` method: + +```php +use Filament\Panel; + +public function panel(Panel $panel): Panel +{ + return $panel + // ... + ->broadcasting(false); +} +```