vendredi 8 mai 2020

how to make live search in laravel?

For example, I have 28k zip data in my DB and each zip has 5 digit range. So if I write first the digit then ajax request gets the data from the database related to this search.

like I write 459 in search and ajax request get the data 45934,45932,45926,45945,45978,4593479,4593480 etc.

So now I want to handle it in the controller and send the data to ajax response for view please share any best way or best Laravel Query for implementation?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire