1vendor/laravel/framework/src/Illuminate/Notifications/Channels/DatabaseChannel.php
2
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 }