22 lines
451 B
PHP
22 lines
451 B
PHP
<?php
|
|
|
|
if (!function_exists('urlGenerator')) {
|
|
/**
|
|
* @return \Laravel\Lumen\Routing\UrlGenerator
|
|
*/
|
|
function urlGenerator() {
|
|
return new \Laravel\Lumen\Routing\UrlGenerator(app());
|
|
}
|
|
}
|
|
|
|
if (!function_exists('asset')) {
|
|
/**
|
|
* @param $path
|
|
* @param bool $secured
|
|
*
|
|
* @return string
|
|
*/
|
|
function asset($path, $secured = false) {
|
|
return urlGenerator()->asset($path, $secured);
|
|
}
|
|
}
|