public function update(User $user, array $input): void 	{ 		Validator::make($input, [ 			'current_password' => ['required', 'string'], 			'password' => $this->passwordRules(), 		]) 		->after(function ($validator) use ($user, $input): void { 			if (!isset($input['current_password']) || !Hash::check($input['current_password'], $user->password)) { 				$validator->errors()->add('current_password', __('The provided password does not match your current password.')); 			} 		}) 		->validateWithBag('updatePassword');  		$user->update([ 			'password' => $input['password'], 		]); 	}