aaix/laravel-countries
Modern Laravel country-data package with zero-touch install, auto-loaded migrations, and idempotent seeders to keep tables and rows in sync on every deploy. Includes regions, countries, language translations, and native_name. Compatible with lwwcas schema/models.
Forked from lwwcas/laravel-countries. Architecture reset with focus on install and update ergonomics for modern Laravel (11, 12) projects.
aaix/laravel-countries; PHP namespace renamed from Lwwcas\LaravelCountries to Aaix\LaravelCountries.w-countries:install and w-countries:languages. Install is now: composer require + php artisan migrate + call the master seeder. No interactive prompts.<= 10 no longer supported. Supports Laravel 11 and 12.Country::getByCode(string $code) — case-insensitive alpha-2 lookup.$country->nameInLang(string $locale) — localized name with fallback-locale fallback.Country::listInLang(string $locale) — iso_alpha_2 => name collection, sorted alphabetically, N+1-free.native_name column on lc_countries — country names in their own primary language (e.g. "Deutschland", "日本", "Россия") for all 245 countries, populated by dedicated NativeNamesSeeder so upstream country-data merges don't overwrite it.DatabaseSeeder that runs regions + 245 countries + 9 languages + native names in one idempotent pass.updateOrCreate keyed on ISO code / locale — safe to re-run on every deploy.hasMigrations), no publish needed.CountryTranslation and CountryRegionTranslation $fillable expanded to include lc_*_id and locale.src/Commands/ (both install commands), WithBasePackageTools and WithLanguages traits (only used by those commands), LanguagesSeeder.php wrapper..travis.yml, .scrutinizer.yml, .styleci.yml, .php_cs.*..github/workflows/deploy.yml (VitePress docs auto-deploy) and the now-unreferenced root-level assets/ directory.How can I help you explore Laravel packages today?