From 9b1b4e8d075d056b491689fb6b4751973aefc1d2 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Fri, 3 Oct 2025 09:50:47 +0700 Subject: [PATCH] fix(outlet): upload image saat update data --- app/Livewire/Forms/Studio/Master/OutletForm.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Livewire/Forms/Studio/Master/OutletForm.php b/app/Livewire/Forms/Studio/Master/OutletForm.php index ae91eea..85fd2c3 100644 --- a/app/Livewire/Forms/Studio/Master/OutletForm.php +++ b/app/Livewire/Forms/Studio/Master/OutletForm.php @@ -184,6 +184,9 @@ public function update() $this->syncMedia($data['featured_image'], $this->outlet, 'featured_image'); $this->syncMedia($data['images'], $this->outlet, 'images'); + + $this->uploadMedia($this->featured_image, $this->outlet, 'featured_image'); + $this->uploadMedia($this->images, $this->outlet, 'images'); }); } }