protected function buildPayload($notifiable, Notification $notification)
    {
        return [
            'id' => $notification->id,
            'type' => get_class($notification),
            'data' => $this->getData($notifiable, $notification),
            'read_at' => null,
        ];
    }
protected function buildPayload($notifiable, Notification $notification)
    {
        return [
            'id' => $notification->id,
            'type' => get_class($notification),
            'data' => $this->getData($notifiable, $notification),
            'read_at' => null,
        ];
    }
protected function buildPayload ( $ notifiable , Notification $ notification ) { return [ 'id' => $ notification -> id , 'type' => get_class ( $ notification ) , 'data' => $ this -> getData ( $ notifiable , $ notification ) , 'read_at' => null , ] ; }
Build an array payload for the DatabaseNotification Model.

@param  mixed  $notifiable
@param  \Illuminate\Notifications\Notification  $notification
@return array
Build an array payload for the DatabaseNotification Model .