diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index 9935f526..913ed450 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -214,7 +214,9 @@ class ItemController extends Controller if (strpos($path, 'icons/icons/') !== false) { $path = str_replace('icons/icons/','icons/',$path); } - Storage::disk('public')->put($path, $contents); + if(! Storage::disk('public')->exists($path)) { + Storage::disk('public')->put($path, $contents); + } $request->merge([ 'icon' => $path, ]);