DEV Community

Pradeep Kumar
Pradeep Kumar

Posted on

1

How to render/preview a notification for debugging

You generally send notification like:

$notification = (new ExampleNotification());
$user->notify($notification);
Enter fullscreen mode Exit fullscreen mode

To Debug this and preview, you can do:

$notification = (new ExampleNotification())->toMail('test@test.com');

echo $notification->render();
die();
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Docusign

πŸ› οΈ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more