Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php artisan world:install is failing silently #109

Open
vishalmandora opened this issue Feb 22, 2025 · 7 comments
Open

php artisan world:install is failing silently #109

vishalmandora opened this issue Feb 22, 2025 · 7 comments

Comments

@vishalmandora
Copy link

Bug Report

Describe the Bug

The php artisan world:install command is not working, even though no errors are shown. It seems like the seeder is failing silently.

Steps to Reproduce

Environment

  • Herd: 1.15.0 (MacOS)
  • PHP: 8.4
  • Laravel: 11.9
  • Package Installation: composer require nnjeim/world

Reproduction Steps

  1. Run the following command:
    php artisan world:install
    • Expected: The tables should be populated with data.
    • Actual: No data is inserted, and no error messages are displayed.

Alternative Steps

Instead of php artisan world:install, I also tried manually running the following:

php artisan vendor:publish --tag=world
php artisan migrate
php artisan db:seed --class=WorldSeeder

But the seeder still does not populate the tables.

Expected Behavior

If the seeder runs successfully, the relevant database tables should contain the expected data.

Additional Context

This was working fine when I initially installed the package a few months ago. However, after running composer update to upgrade all dependencies to their latest versions, the issue started occurring.

Any guidance on how to resolve this would be appreciated.

@vishalmandora
Copy link
Author

The rest of my application relies heavily on this package. @nnjeim, I’d really appreciate your help in resolving this as soon as possible, as I need to deploy the application to the server once the issue is fixed.

@nnjeim
Copy link
Owner

nnjeim commented Feb 22, 2025

@vishalmandora please try
php artisan vendor:publish --tag=world --force

let me know if this works

@vishalmandora
Copy link
Author

php artisan vendor:publish --tag=world --force

INFO Publishing [world] assets.

Copying file [vendor/nnjeim/world/config/world.php] to [config/world.php] ........................................ DONE
Copying file [vendor/nnjeim/world/src/Database/Seeders/WorldSeeder.php] to [database/seeders/WorldSeeder.php] .... DONE
Copying directory [vendor/nnjeim/world/resources/lang] to [resources/lang/vendor/world] .......................... DONE

php artisan migrate

INFO Running migrations.

2020_07_07_055656_create_countries_table ................................................................. 14.00ms DONE
2020_07_07_055725_create_cities_table ..................................................................... 9.69ms DONE
2020_07_07_055746_create_timezones_table .................................................................. 9.33ms DONE
2021_10_19_071730_create_states_table ..................................................................... 9.12ms DONE
2021_10_23_082414_create_currencies_table ................................................................. 6.29ms DONE
2022_01_22_034939_create_languages_table .................................................................. 8.04ms DONE

php artisan db:seed --class=WorldSeeder

INFO Seeding database.

FAILED

php artisan world:install
Installing nnjeim/world...

INFO Seeding database.

FAILED

@nnjeim Here are the steps I’ve performed, but it’s still failing.

@nnjeim
Copy link
Owner

nnjeim commented Feb 25, 2025 via email

@vishalmandora
Copy link
Author

vishalmandora commented Feb 25, 2025

@nnjeim I'm using

Image Image

Composer version 2.8.5

PHP version 8.3.17

  • As I mentioned earlier, everything was working perfectly without any issues. However, after running composer update I’m encountering an issue with this package which is preventing me from deploying the application to production.

@vishalmandora
Copy link
Author

@nnjeim Any updates on this?

@vishalmandora
Copy link
Author

Hi Vishal,

which version of the package are you using, i will be testing the same on my end.

@nnjeim Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants