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

        throw new Exception("Invalid api resource repository '{$resourceName}'");
    }
public function resource(string $resourceName): Repository
    {
        if ($resource = $this->resources->get($resourceName)) {
            return ResourceCollection::makeResourceRepository($resource);
        }

        throw new Exception("Invalid api resource repository '{$resourceName}'");
    }
public function resource ( string $ resourceName ) : Repository { if ( $ resource = $ this -> resources -> get ( $ resourceName ) ) { return ResourceCollection :: makeResourceRepository ( $ resource ) ; } throw new Exception ( "Invalid api resource repository '{$resourceName}'" ) ; }
Resource repository accessor

@param string $resourceName
@return Repository
@throws Exception
Resource repository accessor