How to render/preview a notification for debugging
Pradeep Kumar
Posted on July 19, 2023
You generally send notification like:
$notification = (new ExampleNotification());
$user->notify($notification);
To Debug this and preview, you can do:
$notification = (new ExampleNotification())->toMail('test@test.com');
echo $notification->render();
die();
💖 💪 🙅 🚩
Pradeep Kumar
Posted on July 19, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.