repository = $repository; } /** * Return all Nests that exist on the Panel. * * @param \Pterodactyl\Http\Requests\Api\Application\Nests\GetNestsRequest $request * @return array */ public function index(GetNestsRequest $request): array { $nests = $this->repository->paginated(50); return $this->fractal->collection($nests) ->transformWith($this->getTransformer(NestTransformer::class)) ->toArray(); } /** * Return information about a single Nest model. * * @param \Pterodactyl\Http\Requests\Api\Application\Nests\GetNestsRequest $request * @return array */ public function view(GetNestsRequest $request): array { return $this->fractal->item($request->getModel(Nest::class)) ->transformWith($this->getTransformer(NestTransformer::class)) ->toArray(); } }