Skip to content

Instantly share code, notes, and snippets.

@aonrobot
Created February 2, 2018 04:19
Show Gist options
  • Save aonrobot/ce268add93a8c09e925a342002da06ad to your computer and use it in GitHub Desktop.
Save aonrobot/ce268add93a8c09e925a342002da06ad to your computer and use it in GitHub Desktop.
asset in laravel lumen
<?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