Slick Mail is a simple and minimal mail theme / template for Laravel applications. It provides a fresh look, dark mode support and configuration options to set primary color and logo without publishing the views.
You can install the package via composer:
composer require mansoorkhan/slick-mail
Once you have installed the package, you will need to instruct Laravel to load the mail views from Slick Mail. You can do so by adding following configuration to config/mail.php
file.
'markdown' => [
'paths' => [
__DIR__.'/../vendor/mansoor/slick-mail/resources/views',
],
]
That's it! You should be able to see a new theme in your emails.
The package provides a configuration file which allows you to change the primary color and the mail logo. You can publish the config file using:
php artisan vendor:publish --tag="slick-mail-config"
You may customize the Slick Mail components and the theme CSS file. It is very similar to how you would do it for the default Laravel mail. You will need to publish the slick mail views and apply your changes.
You can publish the views using
php artisan vendor:publish --tag="slick-mail-views"
Make sure to update the config/mail.php
to point to the newly published views.
'markdown' => [
'paths' => [
resource_path('views/vendor/slick-mail'),
],
]
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.