This package provides a customizable select field.
composer require enmaboya/country-select
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')->only(['US', 'RU'])
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')->except(['BY', 'CN'])
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')->onlyContinents(['EU', 'AS'])
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')->exceptContinents(['SA', 'NA', 'OC'])
Available list of continents:
- AF - Africa
- AS - Asia
- EU - Europe
- NA - North America
- OC - Oceania
- SA - South America
You can make this field dependent and use it together with the "Laravel Nova Place Input field".
In this case the search will be limited to the country selected in the "Select Country field".
The MIT License (MIT). Please see License File for more information.