{"repo":"spatie/laravel-mail-preview","free":true,"listed":false,"github":"https://github.com/spatie/laravel-mail-preview","clone":"git clone https://github.com/spatie/laravel-mail-preview.git","description":"A mail driver to quickly preview mail","language":"PHP","stars":1292,"topics":["laravel","mail","testing"],"license":"MIT","category":"dev-tools","readme_excerpt":"A mail driver to quickly preview mail This package can display a small overlay whenever a mail is sent. The overlay contains a link to the mail that was just sent. This can be handy when testing out emails in a local environment. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation You can install the package via composer: Configuring the mail transport This package contains a mail transport called preview . We recommend to only use this transport in non-production environments. To use the preview transport, change the mailers.smtp.transport to preview in your config/mail.php file: Registering the preview middleware route The package can display a link to sent mails whenever they are sent. To use this feature, you must add the Spatie\\MailPreview\\Http\\Middleware\\AddMailPreviewOverlayToResponse middleware to the web middleware group in your kernel. You must also add the mailPreview to your routes file. Typically, the routes file will be located at routes/web.php . This will register a route to display sent mails at /spatie-mail-preview . To customize the URL, pass the URL you want to the macro. Publishing the config file Optionally, you can publish the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-mail-preview/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."}