PHPackages                             crow/laravel-email-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. crow/laravel-email-template

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

crow/laravel-email-template
===========================

Laravel email template

1.0.0(1y ago)03MITPHPPHP &gt;=8.2

Since Mar 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gavoronok30/laravel-email-template)[ Packagist](https://packagist.org/packages/crow/laravel-email-template)[ RSS](/packages/crow-laravel-email-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Description
-----------

[](#description)

- command for sync email templates table in database
- all email templates in seeder file
- global and personal variables for each email template
- storage location of your choice (in blade templates or database)
- text for custom variables via lexicon file
- wrapper template for all email templates (blade)

Install
-------

[](#install)

Open file **bootstrap/providers.php** and connect the provider from the package (optional, using laravel discovered package system by default)

```
\Crow\LaravelEmailTemplate\Providers\EmailTemplateServiceProvider::class,

```

**2.** Run commands

For creating config file

```
php artisan vendor:publish --provider="Crow\LaravelEmailTemplate\Providers\EmailTemplateServiceProvider" --tag=config

```

For creating lexicon file

```
php artisan vendor:publish --provider="Crow\LaravelEmailTemplate\Providers\EmailTemplateServiceProvider" --tag=lang

```

For creating migration file

```
php artisan email:template:publish --tag=migration

```

For generate table

```
php artisan migrate

```

Next steps install
------------------

[](#next-steps-install)

**1.** Create seeder file if not exists for email templates. In the created seed file, you need to add a static method (for example, `public static function data()`). The method must return an array of standard to fill the database

**2.** Open config file `config/email_template.php` and add this class and method in exists parameters

```
'data' => [
    'class' => \Database\Seeders\EmailTemplateTableSeeder::class,
    'method' => 'data',
],

```

**3** Example content seeder file `database/seeders/EmailTemplateTableSeeder.php`

```
