netflex/notifications
最新稳定版本:v6.7.3
Composer 安装命令:
composer require netflex/notifications
包简介
Netflex Notifications Mail Driver for Laravel
README 文档
README
[READ ONLY] Subtree split of the Netflex Notification component (see netflex/framework)
Installation
composer require netflex/notifications
Setup
In config/mail.php:
[ 'driver' => env('MAIL_DRIVER', 'netflex') ]
Usage
You can use this driver to send any Mailables. It also integrates with Laravels Notification system (and adds a 'sms' channel, just implement toSMS on your notification).
<?php use App\Mail\OrderConfirmed; Mail::to($request->user())->send(new OrderConfirmed($order));
It also supports the legacy Netflex mail templates:
<?php use Netflex\Notifications\Notification; Mail::to($request->user())->send( Notification::resolve('order_confirmed', [ 'firstname' => $order->customer_firstname ]) );
统计信息
- 总下载量: 2.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-30