Download the PHP package hxm/laravel-database-email-template without Composer
On this page you can find all versions of the php package hxm/laravel-database-email-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hxm/laravel-database-email-template
More information about hxm/laravel-database-email-template
Files in hxm/laravel-database-email-template
Package laravel-database-email-template
Short Description Flexible customization of email template content, with blade file format. content will be stored in database.
License MIT
Informations about the package laravel-database-email-template
Laravel Database Email Template
Flexible customization of email template content, with blade file format. content will be stored in database.
Able to store:
- Template type: markdown, view
- Subject: only text
- Body
Installation
-
Run migrations to create database table:
-
Publishing the config file
-
Create new mailable with instance of DatabaseEmailTempplateIntercafe via command:
-
After that, you need to add this class
\App\Mail\DemoMailable
into config file. This is the default content of the config file: - You can also add your mailable via the boot function in your ServiceProvider:
This package will automatically register the event listeners and data will be inserted into database.
Using
- Access Admin route index via browser by your config route prefix, by default
https://{yourhost}/database-email-templates
- Create new
- To save the content in the database, you must use the preview function, to make sure there are no errors, then the save button appears.
Please let me know if there is any problem or need any help. Your contribution is valuable to make the package better.
Please note currently for Laravel 7+ until tested and verified in lower versions.