Skip to content

Commit 79c67ca

Browse files
Update notification section to reflect Laravel 11 (#76)
* Update notification to reflect Laravel 11 * Update notification section to reflect Laravel 11 * Update notifications-and-events.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 6024165 commit 79c67ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/docs/notifications-and-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class SendChirpCreatedNotifications implements ShouldQueue// [tl! add]
223223
}
224224
```
225225

226-
We've marked our listener with the `ShouldQueue` interface, which tells Laravel that the listener should be run in a [queue](https://laravel.com/docs/queues). By default, the "sync" queue will be used to process jobs synchronously; however, you may configure a queue worker to process jobs in the background.
226+
We've marked our listener with the `ShouldQueue` interface, which tells Laravel that the listener should be run in a [queue](https://laravel.com/docs/queues). By default, the "database" queue will be used to process jobs asynchronously. To begin processing queued jobs, you should run the `php artisan queue:work` Artisan command in your terminal.
227227

228228
We've also configured our listener to send notifications to every user in the platform, except the author of the Chirp. In reality, this might annoy users, so you may want to implement a "following" feature so users only receive notifications for accounts they follow.
229229

0 commit comments

Comments
 (0)