$request->all() should give you what you're after. It behaves the same as when you do a post request.
Get query parameters as array?
I got a route: 'extensions/{extension_id}/reports' that returns a view with a list of reports for a given Extension object.
However, I want to let this view add filters for the various properties, so I might have an URI like this: http://example.local/extensions/TT_Vertex/reports?exception=NoMethodError
If I use Request::route()->paramters() I only get the URI params used by the route params:
[
"extension_id" => "TT_Vertex"
]
But what I'd like to obtain is the other parameters:
[
"exception" => "NoMethodError"
]
I don't really find a way to do that? I'm assuming there is some function in Laravel that already do this.
Btw, I know that Laravel prefer to not use query strings - but in the case of a filter where I might have multiple filters, even multiple possible values for a given filter query strings seems more appropriate.
Please or to participate in this conversation.