Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
2 | |||||
3 | namespace Illuminate\Contracts\Validation; | ||||
4 | |||||
5 | interface Rule | ||||
6 | { | ||||
7 | /** | ||||
8 | * Determine if the validation rule passes. | ||||
9 | * | ||||
10 | * @param string $attribute | ||||
11 | * @param mixed $value | ||||
12 | * @return bool | ||||
13 | */ | ||||
14 | public function passes($attribute, $value); | ||||
15 | |||||
16 | /** | ||||
17 | * Get the validation error message. | ||||
18 | * | ||||
19 | * @return string|array | ||||
20 | */ | ||||
21 | public function message(); | ||||
22 | } |