From a48f975e9e5b29d44b59addccf415a748638f2df Mon Sep 17 00:00:00 2001 From: Amir Bashiri Date: Sat, 24 Feb 2018 13:30:59 +0330 Subject: [PATCH] Update helpers.php --- files/helpers.php | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers.php b/files/helpers.php index 1aa278c..1c3f23f 100644 --- a/files/helpers.php +++ b/files/helpers.php @@ -11,6 +11,7 @@ */ function image_url($file, $width = 0, $height = 0, $is_crop = false) { + $file = trim($file, '/'); if (empty($file)) { if (!empty(config('image-fit.image_default'))) $file = config('image-fit.image_default');