Fix production install hanging on seeders
🐛 Bug fix
Fixes #53 — php 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
--forceautomatically in production (Laravel 11, 12, and 13) w-countries:install --forceruns migrations and seeders without interactive prompts- New
w-countries:seedcommand 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 --forceReplace mysql with your configured connection if needed.
Full Changelog: 4.13.2...4.13.3