PhoneInput v26 - Release Notes
Internaltional Telephone Input (v18 → v26 upgrade)
Requires PHP Intl extension for country name localization
New Features
- dropdownContainer default changed: null → 'body' (better modal/slide-over support)
- Automatic localization - Country names now localized by default based on app()->getLocale()
- useLocale(?string $locale) - Override locale for country names and UI strings
- IntlTelCountries::all() - All 240+ ISO country codes
- IntlTelCountries::localized($locale) - Get localized country names array
Translations
- Added phone-input.php translations (EN, SV, ES)
- Translatable UI strings: search placeholder, no results, etc.
Usage
// Auto-localized to app locale (default)
PhoneInput::make('phone')
// Explicit locale
PhoneInput::make('phone')
->useLocale('es')
// Limit to specific countries
PhoneInput::make('phone')
->onlyCountries(IntlTelCountries::nordic())
Upgrade Steps
php artisan filament:assets
php artisan view:clear