From f8cc8605cb1af4f74cccb14d6633784fac40f7ad Mon Sep 17 00:00:00 2001 From: Sam Rowden <59183434+nedwors@users.noreply.github.com> Date: Wed, 29 May 2024 10:09:15 +0100 Subject: [PATCH] Update 03-database-notifications.md --- packages/notifications/docs/03-database-notifications.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/notifications/docs/03-database-notifications.md b/packages/notifications/docs/03-database-notifications.md index 8f8940264d..cf58e40293 100644 --- a/packages/notifications/docs/03-database-notifications.md +++ b/packages/notifications/docs/03-database-notifications.md @@ -23,7 +23,7 @@ php artisan notifications:table ## Rendering the database notifications modal -> If you want to add database notifications to a panel, [follow this part of the guide](#adding-database-notifications-to-a-panel). +> If you want to add database notifications to a panel, [follow this part of the guide](#adding-the-database-notifications-modal-to-a-panel). If you'd like to render the database notifications modal outside of the [Panel Builder](../panels), you'll need to add a new Livewire component to your Blade layout: @@ -98,6 +98,8 @@ $recipient->notify( ); ``` +> Database notifications dispatched with `sendToDatabase` and `toDatabase` are queued. Ensure your queue is running to receive notifications dispatched in these ways. + Alternatively, use a traditional [Laravel notification class](https://laravel.com/docs/notifications#generating-notifications) by returning the notification from the `toDatabase()` method: ```php