FEATURE: add helper function asset_path()

This commit is contained in:
Michal Kváček
2016-09-25 02:00:50 +02:00
parent 52394c6289
commit ff4585327e
+4
View File
@@ -23,4 +23,8 @@ function e($value)
*/ */
function setting($key, $default = null) { function setting($key, $default = null) {
return \App\Helpers\Settings::get($key, $default); return \App\Helpers\Settings::get($key, $default);
}
function asset_path($path) {
return env('SITE_URL').'/assets/'.$path;
} }