container->make(ServerRepositoryInterface::class); try { $this->serverModel = $repository->findFirstWhere([ ['external_id', '=', $this->route()->parameter('external_id')], ]); } catch (RecordNotFoundException $exception) { return false; } return true; } /** * Return the server model for the requested external server. * * @return \Pterodactyl\Models\Server */ public function getServerModel(): Server { return $this->serverModel; } }