From 36ec40a2561ab572b62d62c0aa26dacda7b7f496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Sat, 10 Feb 2024 16:47:59 +0100 Subject: [PATCH] remove default validation rules --- src/Fields/Email.php | 1 - src/Fields/URL.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Fields/Email.php b/src/Fields/Email.php index f1142cc2..01ef93ff 100644 --- a/src/Fields/Email.php +++ b/src/Fields/Email.php @@ -14,6 +14,5 @@ public function __construct(string $label, Closure|string|null $modelAttribute = parent::__construct($label, $modelAttribute); $this->type('email'); - $this->rules(['string', 'email']); } } diff --git a/src/Fields/URL.php b/src/Fields/URL.php index f82fbf1b..2b246cd9 100644 --- a/src/Fields/URL.php +++ b/src/Fields/URL.php @@ -22,7 +22,6 @@ public function __construct(string $label, Closure|string|null $modelAttribute = parent::__construct($label, $modelAttribute); $this->type('url'); - $this->rules(['string', 'url']); $this->textResolver = fn (): string => 'URL'; }