code: public function show($id, FilterRequest $request)
      {
          $id = $this->getRealId($id);
          
          $request->criteria[] = 'id,=,' . $id;
          
          $resource = $this->repository->filter($request)->first();
          
          //$resource = $this->repository->find($id);
          
          if (! $resource) {
              // return $this->notFound();
          }
          
          return $this->success($resource);
      }
docs: Display one resource by id.
  
  @return \Illuminate\Http\Response