|string> */ public function rules(): array { return [ 'current_password' => $this->currentPasswordRules(), 'password' => [...$this->passwordRules(), 'different:current_password'], ]; } /** * Get the custom validation messages for the request. * * @return array */ public function messages(): array { return [ 'password.different' => 'The new password must be different from your current password.', ]; } }