ichtrojan/laravel-location

Not All Countries Have States

erayaydin opened this issue · 3 comments

Hello,

In Turkey, we have not states. We only have cities and towns. Because of this, there are duplicated items on cities and states. For example; Istanbul in CitiesTableSeeder and also Istanbul in StatesTableSeeder

Can you please correct it in a PR

There is an issue with country Pakistan as well.

One way to fix this is to add country_id column to cities table. Then create a relationship between City and Country Models. One can then create a route to get cities by country e.g Route::get('country/{countryId}/cities', 'LocationController@getCitiesByCountry');