public function resources(int $version = null)
    {
        $version = $version ?? $this->version;

        return $this->definitions->filter(function (ResourceDefinition $definition) use ($version) {
            return $definition->version === $version;
        })->pluck('resource');
    }
public function resources(int $version = null)
    {
        $version = $version ?? $this->version;

        return $this->definitions->filter(function (ResourceDefinition $definition) use ($version) {
            return $definition->version === $version;
        })->pluck('resource');
    }
public function resources ( int $ version = null ) { $ version = $ version ?? $ this -> version ; return $ this -> definitions -> filter ( function ( ResourceDefinition $ definition ) use ( $ version ) { return $ definition -> version === $ version ; } ) -> pluck ( 'resource' ) ; }
returns all resources

@param int $version
@return Collection
returns all resources