Skip to content

Commit 33574e1

Browse files
committed
fix hard coded prefix
2 parents c637404 + 141ffb0 commit 33574e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traits/LfmHelpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public function getPathPrefix($type)
109109
$prefix = $base_directory . '/' . $prefix;
110110
}
111111

112-
if ($type === 'url' && config('lfm.urls_prefix')) {
113-
$prefix = config('lfm.urls_prefix') . '/' . $prefix;
112+
if ($type === 'url' && $base_directory !== 'public') {
113+
$prefix = config('lfm.prefix', 'laravel-filemanager') . '/' . $prefix;
114114
}
115115

116116
return $prefix;

0 commit comments

Comments
 (0)