Filtering On API
In this episode we are again going to filter our vehicles by location, but this time using October CMS and some Laravel methods.
In previous episode we filtered our vehicles by location - on the frontend of our October and Vue.js app. And in this episode I’m just quickly going to show you how to do the same thing but using your backend.
Now, I’m doing this just so that I can show you that this kind of thing is possible and that there are cases where this method would actually be preferred. For example, if instead of getting just few records from your API, like we do, we would get thousands of records form the API. In that case it would be much better if our API would handle the filtering.