Suggestion to the Filterable Package #206
Closed
khaledhatahet
started this conversation in
Ideas
Replies: 3 comments 3 replies
-
|
@khaledhatahet Appreciate bringing this up! Ya, we'd definitely be able to support this if you wanted to create a PR to add? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
@khaledhatahet released in 3.5.1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@khaledhatahet I have to revert this as it breaks dynamic filters Looking at your initial issue, it sounds like you could add a <?
public function modelFilter()
{
return My\Base\ModelFilter::class
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Contributors,
I hope this message finds you well.
I’m working on a large project that heavily relies on filters, and during my search for a suitable package, I came across yours. After testing it, I must say that it is both extremely helpful and well-structured—great job!
However, I encountered an issue when trying to create a base model and applying the Filterable trait to it, intending to extend it across all my models. The problem arises when a model doesn't have a corresponding filter class, causing the project to break.
To address this, I made a small modification to the code that resolves the issue. I was wondering if you could consider incorporating this change into the package. I’d be happy to share the modification if needed.
change the scope on this line :
EloquentFilter/src/Filterable.php
Line 22 in f265b78
to this :
Thank you for your great work, and I look forward to hearing from you!
Best regards
Beta Was this translation helpful? Give feedback.
All reactions