Recall & Review
beginner
What is a notification channel in Laravel?
A notification channel in Laravel is a way to deliver notifications to users, such as email, database, or SMS. It defines how the notification is sent.
Click to reveal answer
beginner
How do you send a notification via email in Laravel?
You create a notification class and use the 'mail' channel in the via() method. Laravel then sends the notification as an email using the mail configuration.Click to reveal answer
beginner
What does the database notification channel do?
The database channel stores the notification data in a database table. This allows users to view notifications inside the app without sending emails or SMS.
Click to reveal answer
intermediate
How can SMS notifications be sent in Laravel?
SMS notifications are sent using the 'nexmo' or 'vonage' channel (or other SMS services). You configure the SMS service and use the SMS channel in the notification class.
Click to reveal answer
beginner
What method defines which channels a Laravel notification will use?
The via() method inside the notification class returns an array of channels like ['mail', 'database', 'nexmo'] to specify how the notification is sent.Click to reveal answer
Which method in a Laravel notification class specifies the delivery channels?
✗ Incorrect
The via() method returns an array of channels to send the notification.
What does the database notification channel do?
✗ Incorrect
The database channel saves notifications in the database for in-app display.
Which Laravel notification channel is used to send SMS messages?
✗ Incorrect
SMS messages are sent using the nexmo or vonage channel configured with an SMS provider.
How do you specify multiple notification channels in Laravel?
✗ Incorrect
You return an array of channel names like ['mail', 'database'] in the via() method.
What must you do before using the database notification channel?
✗ Incorrect
You need to run the migration to create the notifications table for storing database notifications.
Explain how Laravel sends notifications using multiple channels like mail, database, and SMS.
Think about how you tell Laravel where to send the notification and what each channel does.
You got /5 concepts.
Describe the steps to set up and send a database notification in Laravel.
Focus on the database channel setup and how notifications are stored and accessed.
You got /5 concepts.