laravel-validation-rules/country-codes
Country Codes
Validates 2 & 3 character country codes.
Installation
composer require laravel-validation-rules/country-codes
Usage
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],
]);
Related Packages
cline/intl
Type-safe internationalization value objects and validation rules for Laravel ap...
13,387
1
propaganistas/laravel-phone
Adds phone number functionality to Laravel based on Google's libphonenumber API.
44,475,633
3,037
proengsoft/laravel-jsvalidation
Validate forms transparently with Javascript reusing your Laravel Validation Rul...
2,465,214
1,140
skysplit/laravel5-intl-translation
Laravel 5 package for better translation syntax using php-intl extension
106,888
10