Refactor media storage method to use default disk
This commit is contained in:
parent
16d69e4338
commit
7765640fdd
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ public function addMedia(UploadedFile $file, string $collection = 'default', arr
|
|||
$filename = Str::uuid().'.'.$normalizedExt;
|
||||
$path = 'medias/'.$filename;
|
||||
|
||||
Storage::disk('public')->put($path, $normalizedBytes);
|
||||
Storage::put($path, $normalizedBytes);
|
||||
|
||||
return $this->media()->create([
|
||||
'group_id' => $groupId ?? Str::uuid()->toString(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue