tapp/filament-country-code-field
country_code, iso_alpha2, iso_alpha3), making it highly reusable across domains (e.g., user profiles, orders, shipping addresses).use statements and component registration).country_id FK), a mapping layer (e.g., via accessors/mutators) would be needed.countrycode.css) could clash with existing Filament themes. Test in a staging environment with your theme.config('filament-country-code-field.countries')).country_code column vs. country_id FK).spatie/laravel-filament-settings) for centralized country management.composer require filament/filament:"^4.0|^5.0").composer require tapp/filament-country-code-field:"^2.0"
php artisan vendor:publish --tag="filament-country-code-field-config"
config/filament-country-code-field.php to exclude specific countries.Select components with CountryCodeSelect in Filament resources.TextColumn for country codes with CountryCodeColumn.CountryCodeSelectFilter to tables for filtering.composer why-not to assess risks before upgrading.filament-country-code-field.php) may need updates if country lists or styling change.country_code).countrycode.css.debug:table and debug:form commands to inspect component rendering.country_code column is indexed.getCountries() hook.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Filament major version upgrade | Package compatibility breaks | Pin to a stable Filament version; monitor for updates. |
| CSS conflicts | UI rendering issues | Override styles in a custom Filament asset file. |
| Database schema mismatch | Country codes not saved/displayed | Use accessors/mutators to map custom fields (e.g., country_id → country_code). |
| Localization gaps | Missing country names in UI | Extend translation files or use Filament’s getLabel() hooks. |
| Dependency vulnerabilities | Security risks | Regularly audit dependencies (composer audit). |
How can I help you explore Laravel packages today?