public function read()
    {
        try {
            $this->stack->markAsRead(from_route('type', 'notifications'));
            return new JsonResponse('', 200);
        } catch (Exception $ex) {
            Log::alert($ex);
            return new JsonResponse(['message' => trans('antares/notifications::messages.sidebar.unable_to_mark_notifications_as_read')], 500);
        }
    }
public function read()
    {
        try {
            $this->stack->markAsRead(from_route('type', 'notifications'));
            return new JsonResponse('', 200);
        } catch (Exception $ex) {
            Log::alert($ex);
            return new JsonResponse(['message' => trans('antares/notifications::messages.sidebar.unable_to_mark_notifications_as_read')], 500);
        }
    }
public function read ( ) { try { $ this -> stack -> markAsRead ( from_route ( 'type' , 'notifications' ) ) ; return new JsonResponse ( '' , 200 ) ; } catch ( Exception $ ex ) { Log :: alert ( $ ex ) ; return new JsonResponse ( [ 'message' => trans ( 'antares/notifications::messages.sidebar.unable_to_mark_notifications_as_read' ) ] , 500 ) ; } }
Marks notification item as read

@return JsonResponse
Marks notification item as read