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

Commit b8cd635

Browse files
authored
Merge pull request #11 from VladimirBerdnik/master
Add description for nested rules calls
2 parents 8d0b037 + d14fc93 commit b8cd635

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes History
22

3+
1.0.13
4+
------
5+
Added missed modelExists() description for intellisence this method in nested rules calls
6+
37
1.0.12
48
------
59
Added modelExists() to check that identifier exists among passed model class instances

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)