Skip to content

Commit 8282aea

Browse files
committed
fix problem when creating thumbnails
1 parent 122f6b4 commit 8282aea

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/LfmPath.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace UniSharp\LaravelFilemanager;
44

5-
use Illuminate\Http\File;
65
use Illuminate\Container\Container;
76
use Intervention\Image\Facades\Image;
87
use Symfony\Component\HttpFoundation\File\UploadedFile;
@@ -316,9 +315,5 @@ public function makeThumbnail($file_name)
316315
$image = Image::make($original_image->get())
317316
->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200))
318317
->save($image_path);
319-
320-
$file = new File($image_path);
321-
322-
$this->setName($file_name)->thumb(true)->storage->save($file);
323318
}
324319
}

0 commit comments

Comments
 (0)