How to test Laravel notification e-mail contents
In this tutorial I’ll show you how to test the content of notifications in Laravel. This is particularly handy for testing whether certain data (like a confirmation number or certain credentials) is visible in the notification, similar to how you test ‘regular’ view.
For this tutorial I’ll assume you already know how to make notifications in Laravel.
How test whether a Laravel notification has been sent
First, let’s start with a simple example of testing whether a notification with subscription information was sent to a user.