diff --git a/app/Models/Traits/HasMedia.php b/app/Models/Traits/HasMedia.php index 5b9f1f52..c1b9cb5e 100644 --- a/app/Models/Traits/HasMedia.php +++ b/app/Models/Traits/HasMedia.php @@ -126,7 +126,7 @@ public function addMediaFromPath(string $filePath, string $originalFilename, str $filename = Str::uuid().'.'.$normalizedExt; $storagePath = 'medias/'.$filename; - Storage::disk('public')->put($storagePath, $normalizedBytes); + Storage::put($storagePath, $normalizedBytes); return $this->media()->create([ 'group_id' => $groupId ?? Str::uuid()->toString(),