Laravel Mail Viewer

Design and content team members often need access to emails that your app will send to users. This is a fairly simple package that makes it possible and tries to minimize the dependence of the developer. Using this package, you can have a dedicated route to view all your shipments in one place. Having shareable URLs to view emails makes the team's coordination more seamless.

I also find this idea clean for developers, because I always look at test emails to check the email, and this package gives you the perfect way to apply to all of them in one place.

The configuration accepts all mail that you want to appear; this means that all new emails that you want to add must clearly identify them. You can also restrict access to accessible mail in the environment.

configuration file:

<?phpreturn [ /* |-------------------------------------------------------------------------- | Only the mailables registered here can be accessed using this package |-------------------------------------------------------------------------- | | You have to add the mailables including their dependencies | In the following array. When asked for an emailable, the | Package will search for it here for its definition. | | Eg: [ new OrderShipped(factory(Order::class)->create()) ] | */'mailables' => [],/* |-------------------------------------------------------------------------- | URL where you want to view the mails |-------------------------------------------------------------------------- | | This is the URL where you can view all the | mailables registered above. | */'url' => 'mails',/* |-------------------------------------------------------------------------- | The environments in which the url should be accessible |-------------------------------------------------------------------------- | | If you don't want to use this package in production env | at all, you can restrict that using this option | rather than using a middleware. | */'allowed_environments' => ['local', 'staging', 'testing'],/* |-------------------------------------------------------------------------- | Middlewares should be applied to the URL |-------------------------------------------------------------------------- | | The value should be an array of fully qualified | class names of the middleware classes. | | Eg: [Authenticate::class, CheckForMaintenanceMode::class] | Don't forget to import the classes at the top! | */'middlewares' => [],];

JoggApp / laravel-mail-viewer Access the Laravel Mail Viewer source code and installation instructions on GitHub 


KARABAY A, 2019 . Laravel Mail Viewer,

(Accessed August 02, 2019).

  Share this post

Comments (0)


Sign up for the email newsletter to be the first to know about my blog posts