public function resource(string $resourceName): Repository
    {
        if ($resource = $this->resources->get($resourceName)) {
            return ResourceCollection::makeResourceRepository($resource);
        }

        throw new Exception("Invalid api resource repository '{$resourceName}'");
    }