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: | 2024-12-15 15:08:44 |
Package Statistics | |
---|---|
Total Downloads: | 364,075 |
Monthly Downloads: | 9,640 |
Daily Downloads: | 40 |
Total Stars: | 31 |
Total Watchers: | 5 |
Total Forks: | 14 |
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],
]);