nnjeim / world

A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
MIT License
748 stars 105 forks source link

Help world::countries() returns nothing #17

Closed yungifez closed 2 years ago

yungifez commented 2 years ago

I noticed that I couldn't select all countries

It returns an empty collection

I've seeded the database

nnjeim commented 2 years ago

@yungifez can you please share more details. it is not clear what is the is the issue on your end.

yungifez commented 2 years ago

The world package has been working normally

I use it to create a drop down of all countries and on select, create a states drop down

This has been working normally

I did some tests on my application and did a composer upgrade to the on latest version

I then reignited the table and seeded

But now WORLD::cointries() returns an empty collection

nnjeim commented 2 years ago

@yungifez my advise is to follow the update instruction in the readme. I think that the config file was not updated. Try also to flush the cache as php artisan cache:clear

yungifez commented 2 years ago

Ok i didn't think of clearing cache