Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 681479c

Browse files
author
Vladimir Berdnik
authored
Add missed description of model existence rule
1 parent 6c15b26 commit 681479c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RuleSet.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* @method GenericRuleSet filled() The field under validation must not be empty when it is present.
1616
* @method GenericRuleSet nullable() The field under validation may be null. This is particularly useful when validating primitive such as strings and integers that can contain null values.
1717
* @method GenericRuleSet present() The field under validation must be present in the input data but can be empty.
18+
* @method GenericRuleSet modelExists(string $modelClass, \Closure $closure = null) Get a exists constraint builder instance by model class.
1819
*/
1920
class RuleSet implements IRule
2021
{

0 commit comments

Comments
 (0)