1 | <?php |
||
7 | class PrivateAddress implements Rule |
||
8 | { |
||
9 | /** |
||
10 | * Determine if the validation rule passes. |
||
11 | * |
||
12 | * @param string $attribute |
||
13 | * @param mixed $value |
||
14 | * |
||
15 | * @return bool |
||
16 | */ |
||
17 | 2 | public function passes($attribute, $value) |
|
21 | |||
22 | /** |
||
23 | * Get the validation error message. |
||
24 | * |
||
25 | * @return string |
||
26 | */ |
||
27 | 2 | public function message() |
|
31 | } |
||
32 |