{"repo":"Xammie/mailbook","free":true,"listed":false,"github":"https://github.com/Xammie/mailbook","clone":"git clone https://github.com/Xammie/mailbook.git","description":"✉️ Laravel Mail Explorer","language":"PHP","stars":486,"topics":["laravel","mail","storybook","tailwindcss","php"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Mailbook Mailbook is a Laravel package that lets you easily inspect your mails without having to actually trigger it in your application. View demo Installation You can install the package via composer: Next install mailbook into your application Usage The mailbook:install command will create a route file named routes/mailbook.php . In this file you can register your emails. Next head over to /mailbook to preview the mailables. Registering mails You can both register mailables that live in App\\Mails and email notifications in App\\Notifications . You can also use dependency injection in the closure. Sending to a user A notification will most of the time need a user (also called notifiable in the notification class). You can set the desired user with the ::to() method. If you don't need a user you can also pass an e-mail address. Grouping multiple mails You can group multiple mails under the same category. This can be done using the category() and group() methods. To avoid having to pass the same to() to every mailable that needs it you can also use the group() method. This will use the notifiable to every mailable inside the group. It is also possible to chain both category() and to() to the same group. Variants When creating mails you might have a couple of different scenario's that you want to test for one mail, you can use variants to solve this. Localization When your application supports multiple languages you need to easily preview your mails in these languages. To enabl","default_branch":null,"files":null,"tree":[],"storefront":"/r/Xammie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Xammie/mailbook/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}