ticket email fix
This commit is contained in:
parent
fccfbaca6d
commit
1cf9e55097
|
|
@ -55,12 +55,11 @@ class TicketReceived extends Notification implements ShouldQueue
|
||||||
Log::info($notifiable);
|
Log::info($notifiable);
|
||||||
try{
|
try{
|
||||||
if($notifiable instanceof HelpTicket){
|
if($notifiable instanceof HelpTicket){
|
||||||
return (new MailMessage)->from(config('mail.from_help.address'),config('mail.from.name'))
|
return (new MailMessage)
|
||||||
->view('Emails.Help.CustomerNotification',['ticket' => $this->ticket]);
|
->view('Emails.Help.CustomerNotification',['ticket' => $this->ticket]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
->from(config('mail.from_help.address'),config('mail.from.name'))
|
|
||||||
->line('You have new ticket')
|
->line('You have new ticket')
|
||||||
->line($this->ticket->text)
|
->line($this->ticket->text)
|
||||||
->line($this->ticket->created_at)
|
->line($this->ticket->created_at)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue