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

Commit 504bf68

Browse files
author
Vladimir Berdnik
authored
Add description for nested rules calls
Allows to have intellisence for modelExits method on nested rules calls
1 parent 8d0b037 commit 504bf68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GenericRuleSet.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @method ImageRuleSet dimensions(array $constraints) Get a dimensions constraint builder instance.
1212
* @method GenericRuleSet exists(string $table, string $column, \Closure $closure = null) Get a exists constraint builder instance.
1313
* @method GenericRuleSet unique(string $table, string $column, \Closure $closure = null) Get a unique constraint builder instance.
14+
* @method GenericRuleSet modelExists(string $modelClass, \Closure $closure = null) Get a exists constraint builder instance by model class.
1415
*
1516
* @method StringRuleSet activeUrl() The field under validation must have a valid A or AAAA record according to the dns_get_record PHP function.
1617
* @method StringRuleSet alpha() The field under validation must be entirely alphabetic characters.

0 commit comments

Comments
 (0)