diff --git a/files/helpers.php b/files/helpers.php index ede2419..91c26a6 100644 --- a/files/helpers.php +++ b/files/helpers.php @@ -11,7 +11,7 @@ */ function image_url($file, $width = 0, $height = 0, $is_crop = false) { - $root_path = config(config('image-fit.root_path'), 'files'); + $root_path = config('image-fit.root_path', 'files'); $file = trim($file, '/'); if (empty($file)) {