How do you combine Laravel Query Builder package with action class? #911
Replies: 3 comments
-
Below is an example of trying to filter a
Here is the action class (I use Loris Leiva action class, because it's already include the form request/validation feature):
|
Beta Was this translation helpful? Give feedback.
-
One of the contributors suggest me to use https://github.com/illuminatech/data-provider (also he is the creator of this package). In my opinion, this one is more suitable for action class, since it does not too coupled with But would like to know other opinions. |
Beta Was this translation helpful? Give feedback.
-
Here is the code for now:
|
Beta Was this translation helpful? Give feedback.
-
Hi folks,
I have a question, do you use this package with action class (it could be a plain old php class or using Laravel Action by Loris Leiva)?
I mean, somehow, once I use this package to action class, the filter or the sort no longer feels natural because everything should be included in the Request or request().
What do you think? Please share your thoughts so I can get more insight.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions