Laravel theorytheory 0/50 · 0%
Async · medium

23. Mail & Notifications

Sending emails and multi-channel alerts.

Mailable classes (php artisan make:mail) define emails with Blade views, and are sent via Mail::to($user)->send(new OrderShipped($order)). Notifications go further, supporting multiple channels (mail, database, SMS via Vonage, Slack) from a single notification class. Notifications can implement ShouldQueue to send asynchronously.

Check your understanding

  1. 1. Which class type supports sending across mail, database, and SMS from one definition?

  2. 2. How do you send a mailable to a user?