Initial Commit
This commit is contained in:
commit
9b22323711
36 changed files with 7164 additions and 0 deletions
22
app/View/Helpers.php
Normal file
22
app/View/Helpers.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in a new issue