digitalcloud/zipcode-nova

A Laravel Nova field for zip code.

v1.0 2018-09-02 06:19 UTC

This package is auto-updated.

Last update: 2024-11-11 03:04:23 UTC


README

Validate Zipcode field based on your selected country

Screenshots

Form screenshot

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