通知获取消息内容(Laravel)

时间:2020-09-12 12:17:52

标签: laravel notifications message channel

我正在使用laravel的内置通知功能。我的问题是我想在事件处理程序的通知中发送消息。

/**
 * Handle the event.
 *
 * @param  NotificationSent  $event
 * @return void
 */
public function handle(NotificationSent $event)
{
    // $event->channel
    // $event->notifiable
    // $event->notification
    // $event->response
}

有可能吗?

注意:我没有使用内置的notification模型,所以所有发送到toMail,toSMS的内容。我需要回来的内容。

0 个答案:

没有答案