fivesqrd/fluent-laravel
最新稳定版本:v2.0.2
Composer 安装命令:
composer require fivesqrd/fluent-laravel
包简介
A Laravel 5 service provider for including the Fluent PHP library.
关键字:
README 文档
README
Fluent package for Laravel 5.5+
Install
composer require fivesqrd/fluent-laravel
For Laravel 5.5 and later a facade and service provider will be auto-discovered and you should be set to go:
#Send a test message
php artisan fluent:test me@mydomain.com
Using it in the app:
/* Using the facade to build and send notifications on the fly */
Route::get('/notification/send/{address}', function ($address) {
$messageId = resolve('Fluent')->message()->create()
->title('My Laravel Message')
->paragraph('Lorem ipsum dolor sit amet, consectetur adipiscing elit.')
->to($address)
->subject('Testing from Laravel')
->send();
return "Message has been sent - {$messageId}";
});
You can further customise your setup by adding the following values to your .env file:
FLUENT_KEY=mykey
FLUENT_SECRET=mysecret
FLUENT_NAME=default from name
FLUENT_EMAIL=defaultfromaddress@mydomain.com
统计信息
- 总下载量: 2.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-09-20