Refactor storage method for media upload
This commit is contained in:
parent
7765640fdd
commit
9bc46996e4
1 changed files with 1 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue