laravel 3a customize or extend notifications database model

Solutions on MaxInterview for laravel 3a customize or extend notifications database model by the best coders in the world

showing results for - "laravel 3a customize or extend notifications database model"
Sophie
16 Jun 2020
1vendor/laravel/framework/src/Illuminate/Notifications/Channels/DatabaseChannel.php
2
Oskar
04 Jul 2018
1# Laravel 6/7
2# Go to the vendor/laravel/framework/src/Illuminate/Notifications/Channels/DatabaseChannel.php
3
4protected function buildPayload($notifiable, Notification $notification)
5    {
6
7        $_getData = $this->getData($notifiable, $notification);
8
9        return [
10            'id'         => $notification->id,
11            'type'       => get_class($notification),
12            'data'       => $this->getData($notifiable, $notification),
13            'event_id'   => $_getData['model_id'],
14            'event_type' => $_getData['event_type'],
15            'read_at'    => null,
16        ];
17    }