You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/GenericRuleSet.php
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,18 @@
13
13
* @method GenericRuleSet unique(string $table, string $column, \Closure $closure = null) Get a unique constraint builder instance.
14
14
*
15
15
* @method StringRuleSet activeUrl() The field under validation must have a valid A or AAAA record according to the dns_get_record PHP function.
16
+
* @method StringRuleSet alpha() The field under validation must be entirely alphabetic characters.
17
+
* @method StringRuleSet alphaDash() The field under validation may have alpha-numeric characters, as well as dashes and underscores.
18
+
* @method StringRuleSet alphaNum() The field under validation must be entirely alpha-numeric characters.
16
19
* @method StringRuleSet email() The field under validation must be formatted as an e-mail address.
17
20
* @method StringRuleSet ip() The field under validation must be an IP address.
18
21
* @method StringRuleSet ipv4() The field under validation must be an IPv4 address.
19
22
* @method StringRuleSet ipv6() The field under validation must be an IPv6 address.
20
23
* @method StringRuleSet json() The field under validation must be a valid JSON string.
21
24
* @method StringRuleSet timezone() The field under validation must be a valid timezone identifier according to the timezone_identifiers_list PHP function
22
25
* @method StringRuleSet url() The field under validation must be a valid URL.
26
+
* @method StringRuleSet enum(string $enumClass) Field under validation must match one of values of specified Enum
27
+
23
28
* @method FileRuleSet mimetypes(string ...$types) The file under validation must match one of the given MIME types. To determine the MIME type of the uploaded file, the file's contents will be read and the framework will attempt to guess the MIME type, which may be different from the client provided MIME type.
24
29
* @method FileRuleSet mimes(string ...$extensions) The file under validation must have a MIME type corresponding to one of the listed extensions.
Copy file name to clipboardExpand all lines: src/Rule.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@
48
48
* @method static StringRuleSet url() The field under validation must be a valid URL.
49
49
* @method static StringRuleSet regex(string $pattern, bool $ignoreCase = false) The field under validation must match the given regular expression.
50
50
* @method static StringRuleSet phoneRegex() Shortcut method for validating phone with use regex.
51
+
* @method static StringRuleSet enum(string $enumClass) Field under validation must match one of values of specified Enum
51
52
52
53
* @method static FileRuleSet mimetypes(string ...$types) The file under validation must match one of the given MIME types. To determine the MIME type of the uploaded file, the file's contents will be read and the framework will attempt to guess the MIME type, which may be different from the client provided MIME type.
53
54
* @method static FileRuleSet mimes(string ...$extensions) The file under validation must have a MIME type corresponding to one of the listed extensions.
@@ -144,7 +145,7 @@ public static function image($constraints = []): ImageRuleSet
0 commit comments