Refactor storage method for media upload

This commit is contained in:
Sebastian Albert 2026-05-19 16:42:25 +02:00 committed by GitHub
parent 7765640fdd
commit 9bc46996e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),