public static function getAssetFilePaths($type)
    {
        $path = sprintf('%s/assets/%s/', __DIR__, $type);
        $filenames = preg_grep('/^[^\.]/', scandir($path));
        if (!Arr::iterable($filenames)) {
            return array();
        }

        return array_map(function ($filename) use ($path) {
            return $path.$filename;
        }, $filenames);
    }
public static function getAssetFilePaths($type)
    {
        $path = sprintf('%s/assets/%s/', __DIR__, $type);
        $filenames = preg_grep('/^[^\.]/', scandir($path));
        if (!Arr::iterable($filenames)) {
            return array();
        }

        return array_map(function ($filename) use ($path) {
            return $path.$filename;
        }, $filenames);
    }
public static function getAssetFilePaths ( $ type ) { $ path = sprintf ( '%s/assets/%s/' , __DIR__ , $ type ) ; $ filenames = preg_grep ( '/^[^\.]/' , scandir ( $ path ) ) ; if ( ! Arr :: iterable ( $ filenames ) ) { return array ( ) ; } return array_map ( function ( $ filename ) use ( $ path ) { return $ path . $ filename ; } , $ filenames ) ; }
Get file paths for a type of asset
@param string $type Ex: js
@return array
Get file paths for a type of asset