tuandm / laravue

Admin dashboard for enterprise Laravel applications built by VueJS and Element UI https://laravue.dev
https://laravue.dev
MIT License
2.21k stars 652 forks source link

Integration with Spatie's laravel-query-builder #177

Open jigzstar opened 4 years ago

jigzstar commented 4 years ago

Hi, Great project btw!

I have been using this package for the two projects I have been working, and it's going great so far. One hurdle I came across was sorting and filtering, and stumbled upon this package: https://github.com/spatie/laravel-query-builder

And so far it seems to work pretty well. I just needed to add a

    params: query,
    paramsSerializer: params => {
      return qs.stringify(params);
    },

to get filter[column]=value, to work correctly. There's also a recommended frontend library to build urls to match the above: https://github.com/robsontenorio/vue-api-query

Just thought I would share.

tuandm commented 4 years ago

@jigzstar Thanks for sharing. We will look into this package.

vanthao03596 commented 4 years ago

I tried laravel-query-builder and vue-api-query, both work green and easy to use. ezgif com-video-to-gif

jigzstar commented 4 years ago

@tuandm Welcome. Thanks for laravue! @vanthao03596 Yup. I actually I have it setup on a production app(covid-19 relief), and works pretty smooth.