help desk notification ticketreceived fix

This commit is contained in:
merdan 2020-05-07 13:44:02 +05:00
parent d4929d66dd
commit 8f0806e53f
1 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ class TicketReceived extends Notification implements ShouldQueue
public function toMail($notifiable)
{
try{
Log::info('Mail Notification: ',$notifiable);
if($notifiable instanceof HelpTicket){
return (new MailMessage)
->line('The introduction to the notification.')
@ -67,7 +68,7 @@ class TicketReceived extends Notification implements ShouldQueue
->action('Notification Action', route('ticket.replay',['id'=>$this->ticket->id]))
->line('Thank you for using our application!');
Log::info('Mail Notification: ',$notifiable);
}
catch (\Exception $ex){
Log::error($ex);