remove Mail use from Notifications classes
This commit is contained in:
@@ -29,10 +29,6 @@ class VolunteerUnassignedFromTask extends Notification implements ShouldBroadcas
|
||||
$channels[] = 'broadcast';
|
||||
}
|
||||
|
||||
if ($notifiable->email_notifications) {
|
||||
$channels[] = 'mail';
|
||||
}
|
||||
|
||||
return $channels;
|
||||
}
|
||||
|
||||
@@ -49,16 +45,4 @@ class VolunteerUnassignedFromTask extends Notification implements ShouldBroadcas
|
||||
{
|
||||
return new BroadcastMessage($this->toDatabase($notifiable));
|
||||
}
|
||||
|
||||
public function toMail($notifiable): void
|
||||
{
|
||||
Mail::to($notifiable->email)->send(new VolunteerUnassignToTaskMail([
|
||||
'name' => $notifiable->name,
|
||||
'lastname' => $notifiable->lastname,
|
||||
'taskName' => $this->task->name,
|
||||
'start' => $this->task->start,
|
||||
'end' => $this->task->end,
|
||||
'eventName' => $this->event->name,
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user