@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\ValidationRules\Rules; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\Auth; |
|
6 | 5 | use Illuminate\Contracts\Validation\Rule; |
6 | +use Illuminate\Support\Facades\Auth; |
|
7 | 7 | |
8 | 8 | class Authorized implements Rule |
9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\ValidationRules\Rules; |
4 | 4 | |
5 | -use League\ISO3166\ISO3166; |
|
6 | 5 | use Illuminate\Contracts\Validation\Rule; |
6 | +use League\ISO3166\ISO3166; |
|
7 | 7 | |
8 | 8 | class CountryCode implements Rule |
9 | 9 | { |
@@ -136,6 +136,9 @@ |
||
136 | 136 | return $this->message; |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param string $attribute |
|
141 | + */ |
|
139 | 142 | protected function validate($attribute, $item): array |
140 | 143 | { |
141 | 144 | $validator = Validator::make([$attribute => $item], [$attribute => $this->rule]); |