Check for and get value from filter query string #573
Unanswered
keithbrinks
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm potentially missing something obvious, but I've been searching around and haven't been able to find anything.
Normally in Laravel, if you pass a parameter in the query string (i.e.
myurl.com?foo=bar
) you can getbar
viarequest()
:When using filters, i.e.
filter[foo]=bar
I'd like to do the same, but because this is creating an array within the request object, I'm doing the following:I'm finding myself repeating this pattern and I'm thinking there must be a cleaner way?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions