Skip to content

Fix production install hanging on seeders

Choose a tag to compare

@lwwcas lwwcas released this 14 Jul 20:44
· 8 commits to master since this release
07051d9

🐛 Bug fix

Fixes #53php artisan w-countries:install could hang indefinitely in production when running language seeders.

In production, Laravel requires confirmation before seeding. The installer was calling db:seed silently, hiding the prompt while still waiting for input.


✅ What's fixed

  • Seeders now pass --force automatically in production (Laravel 11, 12, and 13)
  • w-countries:install --force runs migrations and seeders without interactive prompts
  • New w-countries:seed command for seeding data when migrations are already deployed

🚀 New commands

# Full non-interactive install (production)
php artisan w-countries:install --force
php artisan w-countries:install --force --languages=en,pt,es

# Seed only (migrations already deployed)
php artisan w-countries:seed
php artisan w-countries:seed --languages=en,pt,es
php artisan w-countries:seed --all

# List equivalent manual db:seed commands
php artisan w-countries:seed --show-commands

📚 Documentation

  • New Seeders guide
  • README and getting-started updated with production deployment instructions

🔧 Can't update yet?

Run seeders manually with --force:

php artisan db:seed --class="Lwwcas\LaravelCountries\Database\Seeders\LwwcasDatabaseSeeder" --database=mysql --force

Replace mysql with your configured connection if needed.


Full Changelog: 4.13.2...4.13.3