Laravel Notifications

Laravel Notifications

August 3, 2023

Typically, notifications should be short, informational messages that notify users of something that occurred in your application. For example, if you are writing a billing application, you might send an “Invoice Paid” notification to your users via the email and SMS channels.

Generating Notifications

php artisan make:notification InvoicePaid

Sending Notifications

Laravel’s Notification Channels

Laravel allows you to select from various notification channels to send notifications in your application. You can use more than one channel.

  • Mail — These notifications are sent as an email to users.
  • SMS — Users receive these SMS notifications on their mobile phones.
  • Database — These notifications are stored in the database, and you can display them to the user with a custom UI.
  • Slack — These notifications are sent to Slack channels.

Leave A Comment