NULL Filtering not working #816
Unanswered
RobertoLanzeni
asked this question in
Q&A
Replies: 1 comment
-
it was broken in the last 5th version. protected function getRequestData(?string $key = null, $default = null)
{
if (config('query-builder.request_data_source') === 'body') {
return $this->input($key, $default);
}
return $this->get($key, $default); // this is new in the 5th version
return $this->query($key, $default); // this was earlier
} |
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 there.
I'm using this amazing package , but I'm not finding way to filter field as null:
This is URL :
http://127.0.0.1:8001/filterTest?filter[paziente.cognome]=LANZ&filter[stato_pratica]=3&filter[medico.users.name]=Roberto&filter[data_prericovero]=2022
if i set null at latest filter , it returns anything.
I also used this approach : AllowedFilter::exact('data_prericovero')->default(null), but anything has changed.
How can I reach this goal?
Tanks Roberto
Beta Was this translation helpful? Give feedback.
All reactions