nnjeim / world

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

I cant see the states in states call #11

Closed wasiqaftab closed 2 years ago

wasiqaftab commented 2 years ago

HI

i am trying to do this call

$action = World::states([ 'filters' => [ 'country_id' => 168 ] ]);

it's not given me the states for that country just giving me cities but if i change the filter to ios2 it will give me data. but problem is that in database i am storing country id any idea why its doing like that

nnjeim commented 2 years ago

Hi Wasiq, I run the same query on my end and i am attaching the result here below. I acknowledge having a bug in states that was fixed in release 1.1.1 Try to upgrade to the latest version and clear your cache. Please let me know if this will work.

Screenshot 2022-01-27 at 03 44 13

wasiqaftab commented 2 years ago

@nnjeim thanks its fixed