Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ValidArrayKeyExists implements Rule |
||
8 | { |
||
9 | /** |
||
10 | * Check base64. |
||
11 | * |
||
12 | * @param string $attribute |
||
13 | * @param mixed $value |
||
14 | * @return bool |
||
15 | */ |
||
16 | public function passes($attribute, $value) |
||
17 | { |
||
18 | \Illuminate\Validation\Rule::forEach(function (string $value, string $attribute) { |
||
19 | dd($value, $attribute); |
||
20 | }); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Get the validation error message. |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | public function message() |
||
31 | } |
||
32 | } |
||
33 |