bubb / mailee
Laravel 的 Mailee API
0.1
2014-05-29 12:13 UTC
Requires
- php: >=5.4.0
- mashape/unirest-php: dev-master
This package is auto-updated.
Last update: 2024-09-09 14:19:36 UTC
README
Mailee API for Laravel
快速开始
所需设置
在 composer.json
文件的 require
键中添加以下内容:
"bubb/mailee": "dev-master"
运行 composer update 命令
$ composer update
在 config/app.php
文件的末尾添加 'BUBB\Mailee\ServiceProvider'
到 $providers
数组中
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'BUBB\Mailee\ServiceProvider',
),
在 config/app.php
文件的末尾添加 'Mailee' => 'BUBB\Mailee\Facade'
到 $aliases
数组中
'aliases' => array(
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
...
'Mailee' => 'BUBB\Mailee\Facade',
),
发布配置
发布配置文件
$ php artisan config:publish bubb/mailee
用法
创建联系人
<?php
Mailee::createContact(['name' => 'Lucas Colette', 'email' => 'lucas@bubb.com.br']);
将联系人附加到列表中
<?php
Mailee::createContact(['name' => 'Lucas Colette', 'email' => 'lucas@bubb.com.br'])->attachToList('MyList');