einnar82 / custom-database-driver
Removed the namespace in database notification types in Laravel.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/einnar82/custom-database-driver
Requires
This package is auto-updated.
Last update: 2025-10-26 15:51:26 UTC
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];
}