You can send Laravel Notifications not only to a specific user with $user->notify()
, but also to anyone you want, via Notification::route(), with so-called “on-demand” notifications:
Notification::route('mail', 'Jhon@gmail.com')
->route('test', '123456')
->route('slack', 'https://hooks.slack.com/services/...')
->notify(new InvoicePaid($invoice));
No comments:
Post a Comment