Skip to main content
← Back to Table of Contents

Summary

Searchable country picker with circle flags. Stores a single ISO 3166-1 alpha-2 code. Uses the full country list (~255 codes) with optimized flag assets.

Basic usage

Standard country picker

Whitelist and browser detection


State & validation

Stored value

State is a single uppercase ISO 3166-1 alpha-2 string.

Validation rules

Built-in validation ensures the submitted code is in the resolved country list.

Configuration API

All methods accept Closure unless noted.

countries() / exceptCountries()

Limit the list to specific markets:

showDialCode()

Useful for address forms where phone context is helpful:

Real-world examples

Shipping address form

Multi-language support

Country names follow app()->getLocale() by default (Poland / Polska) from the package country translations. Pin a language per field with locale(), independently of the panel locale:

Playground

/admin/flex-fields-playground/country-field See Playground for setup.

CSS classes (reference)


Performance