tabatii / localmail
LocalMail is a laravel database mailer for local development
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
pkg:composer/tabatii/localmail
Requires
- php: ^8.1
- illuminate/collections: ^10.0|^11.0
- illuminate/config: ^10.0|^11.0
- illuminate/console: ^10.0|^11.0
- illuminate/database: ^10.0|^11.0
- illuminate/filesystem: ^10.0|^11.0
- illuminate/mail: ^10.0|^11.0
- illuminate/pipeline: ^10.0|^11.0
- illuminate/routing: ^10.0|^11.0
- illuminate/session: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
- illuminate/testing: ^10.0|^11.0
- illuminate/view: ^10.0|^11.0
- livewire/livewire: ^3.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^11.0
README
About
LocalMail is a laravel database mailer for local development.
Installation
You can install the package via composer:
composer require tabatii/localmail
Next, you should run the package migrations:
php artisan migrate
Also, add the package mailer to your mail.php configuration file:
'mailers' => [
// Other mailers
'localmail' => [
'transport' => 'localmail',
],
],
Finally, change the MAIL_MAILER environment variable to localmail in your .env file:
MAIL_MAILER=localmail
Optionally, you can publish the package configuration file using:
php artisan vendor:publish --tag="localmail-config"
Usage
You can visit the LocalMail dashboard to preview every email you sent.
The LocalMail dashboard is available at the /localmail route named localmail.dashboard.
You can customize this route path in the LocalMail configuration file by changing the routes.prefix key.
'routes' => [
'prefix' => 'localmail',
],
You can also protect the LocalMail dashboard by adding a middleware to the routes.middleware key.
Keep in mind that the web middleware is required for the LocalMail dashboard to work properly.
'routes' => [
'middleware' => ['web', 'auth:admin'],
],
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.

