mansoor / slick-mail
Slick mail template/theme for Laravel (with dark-mode 😎)
Fund package maintenance!
Mansoor Khan
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Language:CSS
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
README
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.
Installation
You can install the package via composer:
composer require mansoorkhan/slick-mail
Configuration
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"
Customization
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'), ], ]
Testing
composer test
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.