einnar82/ custom-database-driver
在Laravel中移除了数据库通知类型中的命名空间。
1.0
2018-12-26 00:56 UTC
Requires
This package is auto-updated.
Last update: 2024-09-26 13:39:04 UTC
README
简化了Laravel数据库通知的类型。
之前
{ "type":"App\\Notifications\\API\\v1\\Vehicles\\VehicleDeletedNotification",
之后
{ "type": "VehicleDeletedNotification",
安装
在您的终端中输入,
$ composer require einnar82/custom-database-driver
然后,将您的通知类驱动程序更改为,
use RannieOllit\CustomDatabaseDriver\CustomDatabaseChannel;
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return [CustomDatabaseChannel::class];
}