Adding an AJAX Live Search Function - Part 2 - Adding the Controller Search Function


Next we will add a route and a matching controller function. This function will retrieve the character/characters typed by the user into the search box on the form. Using this value it will search the existing Members using Eloquent and trying to match what was typed with a either a member's firstname or surname. [...]