إشعارات متعددة القنوات:
إنشاء إشعار
class OrderShipped extends Notification
{
public function via($notifiable)
{
return ['mail', 'database', 'slack'];
}
public function toMail($notifiable)
{
return (new MailMessage)
->line('تم شحن طلبك!');
}
}إرسال الإشعار
$user->notify(new OrderShipped($order));إشعارات الطابور
class OrderShipped extends Notification implements ShouldQueue
{
// يتم وضعه في الطابور تلقائيًا
}