*/ public function rules(): array { return [ 'name' => 'required', 'email' => 'required|email|unique:users,email,' . auth()->user()->id, 'current_password' => 'required', 'new_password' => ['sometimes', Password::defaults()], ]; } }