recca0120/email-template

email view from database
444 5
Install
composer require recca0120/email-template
Latest Version:v0.0.1
PHP:>=5.4.0
License:MIT
Last Updated:Sep 6, 2016
Links: GitHub  ·  Packagist
Maintainer: recca0120

Laravel Email Template

copy database/migrations/2016_01_10_023406_create_email_templates_table.php to [laravel base path]/database/migrations/

artisan migrate
\Recca0120\EmailTemplate\EmailTemplate::create([
    'slug' => 'my first template'
    'from_address' => 'admin@admin.com',
    'from_name' => 'admin',
    'content' => 'my name is: {{$name}}'
]);

$mailer = app()->make(\Recca0120\EmailTemplate\Mailer::class);
$slug = 'my first template';
$mailer->send($slug, ['name' => 'recca0120'], function($m) {
    $m->to('recca0120@gmail.com');
});

Related Packages

larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, r...

3,706 14
boaideas/laravel-cli-create-user

An artisan command to create, list and remove users in a laravel application fro...

10,794 16
lanin/laravel-email-templates-optimization

Optimize your email templates' styles via native Laravel templating mechanism.

5,501 7
toxic-lemurs/menu-builder

A simple database driven menu manager for Laravel 5

13,094 6
tomatophp/filament-alerts

Send notification to users using notification templates and multi notification c...

12,401 82