repository->getAll()); } public function show(string $name) { $genre = $this->repository->getOne($name); abort_unless((bool) $genre, Response::HTTP_NOT_FOUND); return GenreResource::make($genre); } }