validate([ 'contact_first_name' => ['required'], 'contact_last_name' => ['required'], 'contact_email' => ['required', 'email'], ]); $this->contact->first_name = $validated['contact_first_name']; $this->contact->last_name = $validated['contact_last_name']; $this->contact->email = $validated['contact_email']; $this->contact->save(); $this->dispatch('purchase.next'); } public function mount() { if (auth()->guard('contact')->user()->showRff() === false) { $this->dispatch('purchase.next'); } $this->contact = auth()->guard('contact')->user(); $this->contact_first_name = $this->contact->first_name; $this->contact_last_name = $this->contact->last_name; $this->contact_email = $this->contact->email; } public function render() { return view('billing-portal.v3.rff'); } }