From 4a1d90ef2bea63a2ce2113e83667200176a8ab6f Mon Sep 17 00:00:00 2001 From: Hammad Zafar <75698921+hammadzafar05@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:35:11 +0500 Subject: [PATCH] Update 03-database-notifications.md --- packages/notifications/docs/03-database-notifications.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/notifications/docs/03-database-notifications.md b/packages/notifications/docs/03-database-notifications.md index f9677b8d66..f846c67047 100644 --- a/packages/notifications/docs/03-database-notifications.md +++ b/packages/notifications/docs/03-database-notifications.md @@ -142,7 +142,6 @@ DatabaseNotifications::pollingInterval(null); Alternatively, the package has a native integration with [Laravel Echo](https://laravel.com/docs/broadcasting#client-side-installation). Make sure Echo is installed, as well as a [server-side websockets integration](https://laravel.com/docs/broadcasting#server-side-installation) like Pusher. -Once websockets are set up, after sending a database notification you may dispatch a `DatabaseNotificationsSent` event, which will immediately fetch new notifications for that user: Once websockets are set up, you can automatically dispatch a `DatabaseNotificationsSent` event by setting the `isEventDispatched` parameter to `true` when sending the notification. This will trigger the immediate fetching of new notifications for the user: ```php