protected function formatNotificationData($notifications)
    {
        return collect($notifications)->map(function ($notification) {
            $notification->data = json_decode($notification->data);
            return $notification;
        });
    }
protected function formatNotificationData($notifications)
    {
        return collect($notifications)->map(function ($notification) {
            $notification->data = json_decode($notification->data);
            return $notification;
        });
    }
protected function formatNotificationData ( $ notifications ) { return collect ( $ notifications ) -> map ( function ( $ notification ) { $ notification -> data = json_decode ( $ notification -> data ) ; return $ notification ; } ) ; }
Decode notification data

@param $notifications

@return \Illuminate\Support\Collection
Decode notification data