Dynamic coutry ,state,cities with laravel for search a real state location
Hi!
I am new in laravel . I have three tables in relations by eloquent. In my form select i have many states and cities than Countries. so i wish that ,,when i select a country ...i get only states in this country and when i select a state ...i get only cities inside also.
I don't kow how to do it in laravel . Need your help.
If you want this to be dynamic without page refresh you'll need some client side library to perform an AJAX request to your server. On your server you can create a couple of API's to filter the data.
If you use just blade no you'll have to do a page refresh / submit and filter the data at that point.
If you could post the code you already have or go a more in detail what you are trying to achieve technical level it would allow us to guide you through the process.