diff --git a/app/Livewire/Plan/Comment/Create.php b/app/Livewire/Plan/Comment/Create.php index fc505c8..ee77936 100644 --- a/app/Livewire/Plan/Comment/Create.php +++ b/app/Livewire/Plan/Comment/Create.php @@ -38,7 +38,7 @@ class Create extends Component $comment->plan_id = $this->plan->id; $comment->user_id = $this->user->id; $comment->save(); - $this->reset(['body']); + $this->reset(); $this->toggle(); diff --git a/resources/views/livewire/plan/comment/create.blade.php b/resources/views/livewire/plan/comment/create.blade.php index 92a27a0..507b5b0 100644 --- a/resources/views/livewire/plan/comment/create.blade.php +++ b/resources/views/livewire/plan/comment/create.blade.php @@ -18,8 +18,9 @@ $isChecked]) wire:model="isChecked" wire:click="$set('grade',1)" type="radio" name="rate" id="rate-1" value="1" hidden> + - +