laravel-mailee
Mailee API for Laravel, (*1)
Quick start
Required setup
In the require key of composer.json file add the following, (*2)
"bubb/mailee": "dev-master"
Run the composer update command, (*3)
$ composer update
In your config/app.php add 'BUBB\Mailee\ServiceProvider' to the end of the $providers array, (*4)
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'BUBB\Mailee\ServiceProvider',
),
At the end of config/app.php add 'Mailee' => 'BUBB\Mailee\Facade' to the $aliases array, (*5)
'aliases' => array(
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
...
'Mailee' => 'BUBB\Mailee\Facade',
),
Publish your config
Publish the config files:, (*6)
$ php artisan config:publish bubb/mailee
Usage
<?php
Mailee::createContact(['name' => 'Lucas Colette', 'email' => 'lucas@bubb.com.br']);
<?php
Mailee::createContact(['name' => 'Lucas Colette', 'email' => 'lucas@bubb.com.br'])->attachToList('MyList');