tariqbilal
1 month ago
127
1
Laravel

Notification get the message

Posted 1 month ago by tariqbilal

Hello,

I am using laravel's built in notification functionality. My problem is I want to get the message sent in notification in the event handler.

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

is it possible?

Note : I am not using built in notification model, so anything sent in toMail, toSMS. I need the content back.

Please sign in or create an account to participate in this conversation.