define filters in PHP instead of JS #36
Answered
by
abbasudo
olivierbaudouin
asked this question in
Q&A
-
I try to define filters in PHP, but I wonder if this PHP syntax is documented.
Why in PHP? Because qs doesn't work yet with Vite bundler. |
Beta Was this translation helpful? Give feedback.
Answered by
abbasudo
Feb 8, 2024
Replies: 1 comment 2 replies
-
achieve this by this approach $filters = [
'title' => ['$eq' => 'good post']
];
User::filter($filters)->get(); read more at this section in documents |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For this task, you can use nested arrays