Skip to content

Commit

Permalink
remove default validation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Feb 10, 2024
1 parent a1f334b commit 36ec40a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Fields/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ public function __construct(string $label, Closure|string|null $modelAttribute =
parent::__construct($label, $modelAttribute);

$this->type('email');
$this->rules(['string', 'email']);
}
}
1 change: 0 additions & 1 deletion src/Fields/URL.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit 36ec40a

Please sign in to comment.