Category : laravel-notification

I’m trying to send an email notification containing a PDF file to a customer in my ‘customers’ table and model. Doing $user->notify() is easy enough and works no problem, but how can I enable the same functionality for another table besides ‘users’? This is my Customer model: namespace App; use IlluminateDatabaseEloquentModel; use IlluminateNotificationsNotifiable; class Customer ..

Read more

I’m trying to ->notify() different users of the same type via different notification methods. For example: I have TicketCompleted notification and its via() method contains: return [‘mail’, ‘database’];. I also have both methods toArray() and toMail() implemented. So what I’m trying to do is the following: Model Client that has role Accountant should be notified ..

Read more