According to this page, we can send a notification on demand without going through a model. How do I do the same using slack?
I want to do something like this:
$emailAddress = 'my email address';
Notification::route('mail', $emailAddress)
->route('slack', 'what do I put here?')
->notify(new TestNotification());
The code works without the slack
line.
Edit: this StackOverflow question uses the on demand method