code: public function markAsRead($uid)
      {
          if(!$object = $this->model->find($uid)) {
              abort(404);
          }
  
          $this->authorize('update', $object);
  
          $object->markAsRead();
  
          \Cache::tags('response')->flush();
  
          return $this->successJsonResponse();
      }
docs: Mark as read
  
  @param $uid
  @return \Illuminate\Http\JsonResponse