Horje
Laravel: customize or extend notifications - database model Code Example
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,
        ];
    }




Php

Related
get last name user Code Example get last name user Code Example
php slice array in half Code Example php slice array in half Code Example
delete folder laravel Code Example delete folder laravel Code Example
limit text length in php Code Example limit text length in php Code Example
laravel select only one word from string Code Example laravel select only one word from string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8