Replies: 1 comment
-
Known issue: Hoping to roll some fixes into v3 first, then backport any bug fixes into v2 |
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.
-
Hello,
I would ask for help with column filtering. I am trying to setup column filtering but the results are filtered by value that is previous value set in the filter. Can anyone please help?
Sample code:
public function builder(): Builder { return User::select('*') ->when($this->columnSearch['name'] ?? null, fn ($query, $name) => $query->where('clients.name', 'like', '%' . $name . '%')) ->when($this->columnSearch['email'] ?? null, fn ($query, $email) => $query->where('clients.email', 'like', '%' . $email . '%')); }
On the first search I get from $this->columnSearch['name'] empty value but after second I get first value searched.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions