Answers for "Laravel: customize or extend notifications - database model"

SQL
0

Laravel: customize or extend notifications - database model

vendor/laravel/framework/src/Illuminate/Notifications/Channels/DatabaseChannel.php
Posted by: Guest on May-18-2021
0

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,
        ];
    }
Posted by: Guest on May-18-2021

Code answers related to "Laravel: customize or extend notifications - database model"

Code answers related to "SQL"

Browse Popular Code Answers by Language