From 3663094de974f1521a4b382e14080c4c5eb0e32b Mon Sep 17 00:00:00 2001 From: Mafftor Date: Fri, 1 May 2020 12:44:00 +0300 Subject: [PATCH] Fixed slug and tree --- src/LfmPath.php | 3 ++- src/views/tree.blade.php | 18 ------------------ 2 files changed, 2 insertions(+), 19 deletions(-) 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 @@ -
-

Laravel File Manager

- Ver 2.0 -
-
- -
- -
-

Current usage :

-

20 GB (Max : 1 TB)

-
-
-
-
-
-
-