1 | <?php |
||
9 | final class NewPassword implements Rule |
||
10 | { |
||
11 | private $user; |
||
12 | |||
13 | public function __construct(Authenticatable $user = null) |
||
17 | |||
18 | /** |
||
19 | * Determine if the validation rule passes. |
||
20 | * |
||
21 | * @param string $attribute |
||
22 | * @param mixed $value |
||
23 | * @return bool |
||
24 | */ |
||
25 | public function passes($attribute, $value) |
||
33 | |||
34 | /** |
||
35 | * Get the validation error message. |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function message() |
||
43 | } |
||
44 |