src/Http/Controllers/UserController.php
public function markAllNotificationsAsRead()
    {
        /** @var \Unite\UnisysApi\Models\User $object */
        $object = Auth::user();
        $object->unreadNotifications->markAsRead();

        \Cache::tags('response')->flush();

        return $this->successJsonResponse();
    }
public function markAllNotificationsAsRead()
    {
        /** @var \Unite\UnisysApi\Models\User $object */
        $object = Auth::user();
        $object->unreadNotifications->markAsRead();

        \Cache::tags('response')->flush();

        return $this->successJsonResponse();
    }
Mark all as read

Mark all users unread notifications as read

@return \Illuminate\Http\JsonResponse