Facing a problem in implementing relational data with Filament Import Action
Hi,
I have a country-state-city relationship, which I defined as many and belongs to both relationships in models and database schema as foreign id. So, the country has many states, the state has many cities.
so what I want is, to create a city CSV in which I mention all country-state city names, now what I want if the country does not exist in DB then create states and cities, and in the cities table assign the id of states and cities to their respected column, Some one please guide me how can I implement this feature?
1 Reply
Any one can help?