recca0120 / email-template
email view from database
v0.0.2
2016-02-03 19:59 UTC
Requires
- php: >=5.4.0
- illuminate/database: ~5.0
- illuminate/filesystem: ~5.0
- illuminate/mail: ~5.0
- illuminate/view: ~5.0
Requires (Dev)
- mockery/mockery: ~0.9.2
- nesbot/carbon: ~1.20
- phpunit/phpunit: ~4.1
This package is auto-updated.
Last update: 2024-10-10 04:51:29 UTC
README
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'); });