Skip to content

How install Laravel Countries?

Hero Map

🚀 Getting Started

Install the package quickly via Composer:

sh
composer require lwwcas/laravel-countries

And get started with Artisan

sh
php artisan w-countries:install
Artisan install command

After the structure is fully set up, you can choose which languages you want to install

Artisan install commandArtisan install command

And that's it!

Now you're ready to create something incredible

Production deployment

When deploying to production (Laravel 11, 12, or 13), use --force so migrations and seeders run without interactive prompts:

sh
php artisan w-countries:install --force --languages=en,pt,es

If migrations already ran during your deploy pipeline, seed the data separately:

sh
php artisan w-countries:seed --languages=en,pt,es

For the full list of manual db:seed commands, run:

sh
php artisan w-countries:seed --show-commands

See the Seeders guide for all options and seeder class names.

For details on how to install or uninstall languages, check out the Languages section Here.

Released under the MIT License.