URL::assetFrom PHP Метод

assetFrom() публичный статический Метод

Generate a URL to an asset from a custom root domain such as CDN, etc.
public static assetFrom ( string $root, string $path, boolean | null $secure = null ) : string
$root string
$path string
$secure boolean | null
Результат string
        public static function assetFrom($root, $path, $secure = null)
        {
            return \Illuminate\Routing\UrlGenerator::assetFrom($root, $path, $secure);
        }

Usage Example

Пример #1
0
    ?>
                lang: '<?php 
    echo $locale;
    ?>
', // locale
                <?php 
}
?>
                customData: {
                    _token: '<?php 
echo csrf_token();
?>
'
                },
                soundPath: <?php 
echo json_encode(URL::assetFrom($dir, 'sounds'));
?>
,
                url: '<?php 
echo route('backend.filemanager.elfinder.connector', [], false);
?>
'  // connector URL
            });
        });
    </script>
</head>
<body>

<!-- Element where elFinder will be created (REQUIRED) -->
<div id="elfinder"></div>