Skip to content

Commit f4e3e0e

Browse files
committed
chore: update readme
1 parent 2854fca commit f4e3e0e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,21 @@ Checks if the field under validation is present and not empty. A field is "empty
175175
- The value is `NULL` or `FALSE`.
176176
- The value is an empty string.
177177
- 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/>
179182
Checks if the field under validation is equal to the specified `:other` attribute.
180-
21. **`size:value`**<br/>
183+
22. **`size:value`**<br/>
181184
Checks if the field under validation has exactly the same size as `:size`.
182185
- For string data, the value corresponds to the number of characters.
183186
- For numeric data, the value corresponds to a given integer value.
184187
- For an array, the value corresponds to the count of the array.
185-
22. **`string`**<br/>
188+
23. **`string`**<br/>
186189
Checks if the given value is a string.
187-
23. **`uppercase`**<br/>
190+
24. **`uppercase`**<br/>
188191
Checks if the string value consists of all uppercase letters.
189-
24. **`url`**<br/>
192+
25. **`url`**<br/>
190193
Checks if the value is a valid URL.
191194

192195
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

Comments
 (0)