Multi-channel notifications:
Create Notification
class OrderShipped extends Notification
{
public function via($notifiable)
{
return ['mail', 'database', 'slack'];
}
public function toMail($notifiable)
{
return (new MailMessage)
->line('Your order has shipped!');
}
}Send Notification
$user->notify(new OrderShipped($order));Queue Notifications
class OrderShipped extends Notification implements ShouldQueue
{
// Automatically queued
}