diff --git a/src/LfmPath.php b/src/LfmPath.php index 6451ed82..76caf9de 100644 --- a/src/LfmPath.php +++ b/src/LfmPath.php @@ -3,6 +3,7 @@ namespace Mafftor\LaravelFileManager; use Illuminate\Container\Container; +use Illuminate\Support\Str; use Intervention\Image\Facades\Image; use Symfony\Component\HttpFoundation\File\UploadedFile; use Mafftor\LaravelFileManager\Events\ImageIsUploading; @@ -302,7 +303,7 @@ private function getNewName($file) if (config('lfm.rename_file.uniqid', false) === true) { $new_file_name = uniqid(); } elseif (config('lfm.rename_file.slug', true) === true) { - $new_file_name = str_slug($new_file_name); + $new_file_name = Str::slug($new_file_name); } $extension = $file->getClientOriginalExtension(); diff --git a/src/views/tree.blade.php b/src/views/tree.blade.php index da4f47fd..f5056c89 100644 --- a/src/views/tree.blade.php +++ b/src/views/tree.blade.php @@ -1,21 +1,3 @@ -
Current usage :
-20 GB (Max : 1 TB)
-