Created
February 2, 2018 04:19
-
-
Save aonrobot/ce268add93a8c09e925a342002da06ad to your computer and use it in GitHub Desktop.
asset in laravel lumen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Library; | |
class Util{ | |
/** | |
* Generate an asset path for the application. | |
* | |
* @param string $path | |
* @param bool $secure | |
* @return string | |
*/ | |
static public function asset($path, $secure = null) | |
{ | |
return app('url')->asset($path, $secure); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment