public function moduleAsset($module, $path, $contentType = 'null')
    {
        $assetPath = base_path(Config::get('cms.module-directory').'/'.ucfirst($module).'/Assets/'.$path);

        if (!is_file($assetPath)) {
            $assetPath = config('cms.modules.'.$module.'.asset_path').'/'.$path;
        }

        return url(config('cms.backend-route-prefix', 'cms').'/asset/'.CryptoServiceFacade::url_encode($assetPath).'/'.CryptoServiceFacade::url_encode($contentType).'/?isModule=true');
    }
public function moduleAsset($module, $path, $contentType = 'null')
    {
        $assetPath = base_path(Config::get('cms.module-directory').'/'.ucfirst($module).'/Assets/'.$path);

        if (!is_file($assetPath)) {
            $assetPath = config('cms.modules.'.$module.'.asset_path').'/'.$path;
        }

        return url(config('cms.backend-route-prefix', 'cms').'/asset/'.CryptoServiceFacade::url_encode($assetPath).'/'.CryptoServiceFacade::url_encode($contentType).'/?isModule=true');
    }
public function moduleAsset ( $ module , $ path , $ contentType = 'null' ) { $ assetPath = base_path ( Config :: get ( 'cms.module-directory' ) . '/' . ucfirst ( $ module ) . '/Assets/' . $ path ) ; if ( ! is_file ( $ assetPath ) ) { $ assetPath = config ( 'cms.modules.' . $ module . '.asset_path' ) . '/' . $ path ; } return url ( config ( 'cms.backend-route-prefix' , 'cms' ) . '/asset/' . CryptoServiceFacade :: url_encode ( $ assetPath ) . '/' . CryptoServiceFacade :: url_encode ( $ contentType ) . '/?isModule=true' ) ; }
Module Assets.

@param string $module      Module name
@param string $path        Asset path
@param string $contentType Content type

@return string
Module Assets .