mehdi-fathi / eloquent-filter

Eloquent Filter is a package for filter data of models by the query strings. Easy to use and fully dynamic.
https://mehdi-fathi.github.io/eloquent-filter/
MIT License
430 stars 43 forks source link

Dynamic filtering and front-end solution #205

Open lanoow opened 10 months ago

lanoow commented 10 months ago

Is your feature request related to a problem? Please describe. My feature request isn't related to a problem.

Describe the solution you'd like A front-end solution/guide and a dynamic solution for e-commerce websites like product filtering with filters managed by the admin panel.

Describe alternatives you've considered AJAX Requests and Blade foreach for the filters stored in the database.

Additional context I don't really understand the package, I read the full readme and made it to work but only with one hard coded "filter", the brand of the product.

mehdi-fathi commented 10 months ago

@lanoow I didn't realize what it's your difficulty. however, this package has to do with the back-end side. and we didn't focus on the front-end side. anyway, if you have any clear idea with clarification, I'll be delighted to hear that.

lanoow commented 10 months ago

I understand that it's back-end, but what I'm asking is, is there a way to make the filtering dynamic? Let's say we have a model Filter and another model FilterAttribute and we have tables for both of them, is there a way for the package to load them?

And the other question was, how do I integrate the package to a front-end solution like Livewire?