src/controllers/BaseController.php
public function resources()
    {   
        $options = Config::get('laravel-swagger::getResourceListOptions');

        $excludedPath = Config::get('laravel-swagger::excludedPath');
        $swagger = new Swagger($this->getPaths(), $excludedPath);

        if (Config::get('laravel-swagger::cache')) {
            $resourceList = Cache::remember('resourceList', $this->getExpireAt(), function() use ($swagger, $options)
            {
                return $swagger->getResourceList($options);
            });
        } else {
            $resourceList = $swagger->getResourceList($options);
        }

        return $resourceList;
    }
public function resources()
    {   
        $options = Config::get('laravel-swagger::getResourceListOptions');

        $excludedPath = Config::get('laravel-swagger::excludedPath');
        $swagger = new Swagger($this->getPaths(), $excludedPath);

        if (Config::get('laravel-swagger::cache')) {
            $resourceList = Cache::remember('resourceList', $this->getExpireAt(), function() use ($swagger, $options)
            {
                return $swagger->getResourceList($options);
            });
        } else {
            $resourceList = $swagger->getResourceList($options);
        }

        return $resourceList;
    }
public function resources ( ) { $ options = Config :: get ( 'laravel-swagger::getResourceListOptions' ) ; $ excludedPath = Config :: get ( 'laravel-swagger::excludedPath' ) ; $ swagger = new Swagger ( $ this -> getPaths ( ) , $ excludedPath ) ; if ( Config :: get ( 'laravel-swagger::cache' ) ) { $ resourceList = Cache :: remember ( 'resourceList' , $ this -> getExpireAt ( ) , function ( ) use ( $ swagger , $ options ) { return $ swagger -> getResourceList ( $ options ) ; } ) ; } else { $ resourceList = $ swagger -> getResourceList ( $ options ) ; } return $ resourceList ; }
Show all available Resources
Show all available Resources