protected function getContentLocation(Model $model, Resource $resource)
    {
        $query = http_build_query($resource->query);

        $content_location = "$this->url/$resource->name/"
            . $this->getPrimaryKey($model)
            . ($query !== '' ? '?' . $query : '');

        return $content_location;
    }
protected function getContentLocation(Model $model, Resource $resource)
    {
        $query = http_build_query($resource->query);

        $content_location = "$this->url/$resource->name/"
            . $this->getPrimaryKey($model)
            . ($query !== '' ? '?' . $query : '');

        return $content_location;
    }
protected function getContentLocation ( Model $ model , Resource $ resource ) { $ query = http_build_query ( $ resource -> query ) ; $ content_location = "$this->url/$resource->name/" . $ this -> getPrimaryKey ( $ model ) . ( $ query !== '' ? '?' . $ query : '' ) ; return $ content_location ; }
Returns Content-Location for a Model in a Resource

@param Model    $model    Model to get Location
@param Resource $resource Resource that loaded $model

@return string
Returns Content - Location for a Model in a Resource