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
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,18 +175,21 @@ Checks if the field under validation is present and not empty. A field is "empty
175
175
- The value is `NULL` or `FALSE`.
176
176
- The value is an empty string.
177
177
- The value is an empty array or empty countable object.
178
-
20.**`same:field`**<br/>
178
+
179
+
20.**`present`**<br/>
180
+
The field must be present in the input data for validation.
181
+
21.**`same:field`**<br/>
179
182
Checks if the field under validation is equal to the specified `:other` attribute.
180
-
21.**`size:value`**<br/>
183
+
22.**`size:value`**<br/>
181
184
Checks if the field under validation has exactly the same size as `:size`.
182
185
- For string data, the value corresponds to the number of characters.
183
186
- For numeric data, the value corresponds to a given integer value.
184
187
- For an array, the value corresponds to the count of the array.
185
-
22.**`string`**<br/>
188
+
23.**`string`**<br/>
186
189
Checks if the given value is a string.
187
-
23.**`uppercase`**<br/>
190
+
24.**`uppercase`**<br/>
188
191
Checks if the string value consists of all uppercase letters.
189
-
24.**`url`**<br/>
192
+
25.**`url`**<br/>
190
193
Checks if the value is a valid URL.
191
194
192
195
Missing any validation rule that you need? Refer to the [Custom Validation Rule](#custom-validation-rule) section to know how you can create and use custom validation rules in your project alongside the library.
0 commit comments