Laravel: customize or extend notifications - database model
vendor/laravel/framework/src/Illuminate/Notifications/Channels/DatabaseChannel.php
Laravel: customize or extend notifications - database model
vendor/laravel/framework/src/Illuminate/Notifications/Channels/DatabaseChannel.php
Laravel: customize or extend notifications - database model
# Laravel 6/7
# Go to the vendor/laravel/framework/src/Illuminate/Notifications/Channels/DatabaseChannel.php
protected function buildPayload($notifiable, Notification $notification)
{
$_getData = $this->getData($notifiable, $notification);
return [
'id' => $notification->id,
'type' => get_class($notification),
'data' => $this->getData($notifiable, $notification),
'event_id' => $_getData['model_id'],
'event_type' => $_getData['event_type'],
'read_at' => null,
];
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us