Optimize laravel code that populates a searchable textfield
I have the following code that is working fine, I am trying to fetch about 50,000 cities in a searchable textfield using laravel but it takes alot of time and browser becoming inactive. How can I optimize so that it…