I need to pass the array using vue http get. But I not sure how to do so.I know I can pass parameter for get method using (I am using spatie/laravel-query-builder) '/users?filter[name]=John'.
I have an array of category = [10, 20, 100]; the contain of category is id. I need to pass the id to laravel controller.
vue.js to call get
axios.get(url).then((res) => {
console.log(res.data);
})
.catch((err) => console.error(err));