help desk notification ticketCommented

This commit is contained in:
merdan 2020-05-06 21:08:44 +05:00
parent 9a47156f6a
commit 70acc87a46
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Support\Facades\Log;
class TicketReceived extends Notification implements ShouldQueue
{
@ -55,6 +56,8 @@ class TicketReceived extends Notification implements ShouldQueue
->line('You have new ticket')
->action('Notification Action', route('ticket.replay',['id'=>$this->ticket->id]))
->line('Thank you for using our application!');
Log::info('Mail Notification: ',$notifiable);
}
/**
@ -66,5 +69,6 @@ class TicketReceived extends Notification implements ShouldQueue
public function toDatabase($notifiable)
{
return $this->ticket->toArray();
Log::info('Database Notification: ',$notifiable);
}
}