name = Auth::user()->name; $this->email = Auth::user()->email; } /** * Update the profile information for the currently authenticated user. */ public function updateProfileInformation(): void { $user = Auth::user(); $validated = $this->validate($this->profileRules($user->id)); $user->fill($validated)->save(); $this->dispatch('profile-updated', name: $user->name); $this->success(__('Saved.')); } }; ?>