mansoor/slick-mail

Slick mail template/theme for Laravel (with dark-mode 😎)

Fund package maintenance!
Mansoor Khan

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Language:CSS

v1.0.1 2024-07-10 04:47 UTC

This package is auto-updated.

Last update: 2024-10-10 11:30:39 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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.