A common scenario:
- On your dev machine you do composer require lwwcas/laravel-countries
- Then do php artisan w-countries:install . Start using the package add your code. Test and all is good.
- Then you go and deploy on production. Migrations are transferred and completed as expected.
- Now you know that you need to run php artisan w-countries:install for the seeders, but it doesn't work.
In Trait\WithLanguages.php
There is this code
$this->comment('Running languages...');
foreach ($filteredLanguages as $language => $class) {
$this->callSilently('db:seed', [
'--class' => $class,
]);
$this->comment("{$language} executed successfully.");
}
Which hangs until you press enter. In order to make it work I've changed callSilently to call
which led to this screenshot where you see the reason

When running in production you have to confirm the seed, but you don't see the prompt when calling silently.
A common scenario:
In Trait\WithLanguages.php
There is this code
Which hangs until you press enter. In order to make it work I've changed callSilently to call

which led to this screenshot where you see the reason
When running in production you have to confirm the seed, but you don't see the prompt when calling silently.