einnar82/custom-database-driver
Composer 安装命令:
composer require einnar82/custom-database-driver
包简介
Removed the namespace in database notification types in Laravel.
README 文档
README
Simplified the notification type of Laravel Database Notifications.
Before:
{ "type":"App\\Notifications\\API\\v1\\Vehicles\\VehicleDeletedNotification",
After:
{ "type": "VehicleDeletedNotification",
Installation:
In your terminal type,
$ composer require einnar82/custom-database-driver
Then, change your notification class driver into,
use RannieOllit\CustomDatabaseDriver\CustomDatabaseChannel;
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return [CustomDatabaseChannel::class];
}
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-26