dimanche 22 juillet 2018

Laravel 5.6 one event and many optional listener

in Laravel 5.6

I have an event named DocumentSend,

And i have many Listeners Like (SendEmail, SendNotification, SendSMS),

listeners are optional (depends on document type and defined by user), now the question is:

How can i call for example DocumentSend event with just SendSMS listener or DocumentSend with all the listeners?

I hope you get my mean,and tell me the best practice for my issue.

Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire