Removed the namespace in database notification types in Laravel.
einnar82/custom-database-driver is a Laravel package for removed the namespace in database notification types in laravel..
It currently has 1 GitHub stars and 6 downloads on Packagist (latest version 1.0).
Install it with composer require einnar82/custom-database-driver.
Discover more Laravel packages by einnar82
or browse all Laravel packages to compare alternatives.
Last updated
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];
}