Search code examples
laravelslack

Why do we need to and from methods in SlackMessage in Laravel?


If the channel the notification will be posted to is defined by routeNotificationForSlack, why do we need to method in SlackMessage, and how it works? I will not be able to post to many channels chaining multiple to methods anyway.

Same for from: I registered my app and gave it some name, and the messages are posted using this name, not the one I provided in SlackMessage from method


Solution

  • You don't, they're optional. Check the docs