On this page
- 1 Laravel Notifications
- 2 Laravel Notifications
- 2.1 Generating Notifications
- 2.2 Sending Notifications
- 2.3 Laravel’s Notification Channels
- 2.3.0.1 Managing User Notification Preferences in Laravel: JSON vs Pivot Table
- 2.3.0.2 Eloquent: Getting Started
- 2.3.0.3 Essential Laravel Packages for Streamlined Development
- 2.3.0.4 Testing: Getting Started
- 2.3.0.5 CSRF Protection in Laravel
- 2.3.0.6 Laravel Artisan Console Commands
- 2.3.0.7 Laravel: Factories and seeders
- 2.3.0.8 Laravel: Getting Start
- 2.4 Leave A Comment Cancel reply
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.