From ff4585327e5f415d079970da7c5fcf605dd2581a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Sun, 25 Sep 2016 02:00:50 +0200 Subject: [PATCH] FEATURE: add helper function asset_path() --- app/Helpers/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Helpers/functions.php b/app/Helpers/functions.php index 938ae77e..8a163000 100644 --- a/app/Helpers/functions.php +++ b/app/Helpers/functions.php @@ -23,4 +23,8 @@ function e($value) */ function setting($key, $default = null) { return \App\Helpers\Settings::get($key, $default); +} + +function asset_path($path) { + return env('SITE_URL').'/assets/'.$path; } \ No newline at end of file