digitalcloud / zipcode-nova
A Laravel Nova field for zip code.
Installs: 5 443
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=7.1.0
- sirprize/postal-code-validator: ^1.3
This package is auto-updated.
Last update: 2024-12-11 03:14:46 UTC
README
Validate Zipcode field based on your selected country
Screenshots
Install
Run this command into your nova project:
composer require digitalcloud/zipcode-nova
Add it to your Nova Resource:
use Digitalcloud\ZipCodeNova\ZipCode; ZipCode::make('zipcode')->setCountry('US'),
Country Codes
Postal-code-validator uses ISO 3166 2-letter country codes
Roadmap
- Specify the country field for dynamic country selection
- Support multiple countries on the same request