user = Auth::user(); } public function render() { return view('livewire.user.add-circumference'); } public function add() { $newMeasure = CircumferenceMeasure::create([ 'user_id' => $this->user->id, 'chest_circumference' => $this->chest_circumference, 'waist_circumference' => $this->waist_circumference, 'hip_circumference' => $this->hip_circumference ]); $newMeasure->save(); $this->reset(['chest_circumference', 'waist_circumference', 'hip_circumference']); $this->emitTo('profile.circumference-chart', 'circumference-chart-updated'); $this->closeModal(); } }