所以通知没有问题,在我的用户模型上,我正在这样路由到松弛:
/**
* Route notifications for the Slack channel.
*
* @return string
*/
public function routeNotificationForSlack()
{
return env('SLACK_WEBHOOK_URL');
}
但是,当需要进行更改时,以下from和to方法无效。
return (new SlackMessage)
->from('Ghost', ':ghost:')
->to('#channel-name')
我需要怎么做才能发布到另一个频道?并更改from会很好!