code: public function show($id)
      {
          if(!$object = $this->repository->find($id)) {
              abort(404);
          }
  
          $this->authorize('view', $object);
  
          return $this->response->resource($object);
      }
docs: Show
  
  @param $id
  
  @return Resource|UserResource