Support the ongoing development of Laravel.io →
posted 9 years ago
Views

I am using L5 for my application. I have to use autocomplete property from database. Anyone has this information, please help me in how this is to be implemented in router, controller, views.

Last updated 3 years ago.
0

Create a route, that will get the appropriate data from DB depending on query, on frontend I'd suggest you use jquery ajax and when the user starts typing, send that query to that route, which will return the results, than display them

https://jqueryui.com/autocomplete/

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.