Import notification file and updated other file..
This commit is contained in:
@ -38,7 +38,7 @@ class ImportFailed extends Notification implements ShouldQueue
|
||||
*/
|
||||
public function via($notifiable)
|
||||
{
|
||||
return ['mail'];
|
||||
return ['mail', 'database'];
|
||||
}
|
||||
|
||||
/**
|
||||
@ -50,8 +50,8 @@ class ImportFailed extends Notification implements ShouldQueue
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
$message = (new MailMessage)
|
||||
->subject(trans('notifications.import.failed.subject'))
|
||||
->line(trans('notifications.import.failed.description'));
|
||||
->subject(trans('notifications.import.failed.subject'))
|
||||
->line(trans('notifications.import.failed.description'));
|
||||
|
||||
foreach ($this->errors as $error) {
|
||||
$message->line($error);
|
||||
@ -59,4 +59,17 @@ class ImportFailed extends Notification implements ShouldQueue
|
||||
|
||||
return $message;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the array representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
return [
|
||||
'errors' => $this->errors,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user