Download the PHP package joggapp/laravel-mail-viewer without Composer
On this page you can find all versions of the php package joggapp/laravel-mail-viewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download joggapp/laravel-mail-viewer
More information about joggapp/laravel-mail-viewer
Files in joggapp/laravel-mail-viewer
Package laravel-mail-viewer
Short Description View all your mailables at a single place
License MIT
Informations about the package laravel-mail-viewer
This package has been archived and will no longer be maintained/updated. The reason being Laravel now itself provides a really convenient way to preview mailables in the browser.
View all your mailables at a single place
The Design and content team members often need access to the emails your app will be sending out to the users. This is a fairly simple package that makes it possible and tries to minimize developer dependency. By using this package, you can have a dedicated route to view all your mailables at a single place. Having shareable URLs to view the mails makes the team co-ordination more smooth.
Installation
You can install this package via composer using this command:
The package will automatically register itself.
You will have to add the mailables and configure the other settings using the package's config file in order to to use this package. Please read the comments/description for each config key thoroughly and set their values. You can publish the config file with:
This will create the package's config file called mailviewer.php
in the config
directory. These are the contents of the published config file:
How to use
-
After setting up the config values as described above, you can see the list of all mailables by visiting the
/mails
route (considering the default url is 'mails' in the config file). You can modify it to whatever you want as per your needs. -
You can also restrict the environments the package should list the mailables in. By default, the
allowed_environments
config is set to allow 3 environments:local
,staging
&testing
. You can further secure it using themiddlewares
config. - Default view:
List of all mails | A particular mail rendered |
---|---|
- This package supports the option of overriding the package views that Laravel provides. You can modify the view using these instructions from the Laravel docs, as per your needs.
Testing
You can run the tests with:
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Harish Toshniwal
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-mail-viewer with dependencies
illuminate/routing Version 7.*|8.*
illuminate/support Version 7.*|8.*
illuminate/database Version 7.*|8.*