warning() ->attachment(function ($attachment) { $attachment->title('Test notification'); }); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } }