1 year ago

Best Practices, Search with laravel and vue

Posted 1 year ago by danielesposito

Hello to everyone and hello @JeffreyWay

I have got a doubt and I believe some of you may help me. I'm on a project and I need to build a search component. This search will have some filter on the resources that users are searching on and one of this will be a select list of categories.

How should I expose this list to Vue? Which are the best practices? I have to create a dedicated controller where I fetch the data needed and call it with Ajax? Better to create an API Resource and call it from a route? Should I use the API routes?

As most of you, I'm using laravel as backend and Vue for the front-end. I hope some of you can help me out to better understand this concept.

I will appreciate.



Please sign in or create an account to participate in this conversation.