Package Data | |
---|---|
Maintainer Username: | clarkeash |
Maintainer Contact: | me@ashleyclarke.me (Ashley Clarke) |
Package Create Date: | 2017-09-10 |
Package Last Update: | 2024-07-26 |
Home Page: | |
Language: | PHP |
License: | Apache-2.0 |
Last Refreshed: | 2025-04-22 03:08:12 |
Package Statistics | |
---|---|
Total Downloads: | 401,810 |
Monthly Downloads: | 8,560 |
Daily Downloads: | 220 |
Total Stars: | 31 |
Total Watchers: | 4 |
Total Forks: | 17 |
Total Open Issues: | 2 |
Validates 2 & 3 character country codes.
composer require laravel-validation-rules/country-codes
Validate a 2 character country code.
use LVR\CountryCode\Two;
$request->validate([
'country' => ['required', new Two],
]);
Validate a 3 character country code.
use LVR\CountryCode\Three;
$request->validate([
'country' => ['required', new Three],
]);