You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently request.input('key') will return the query string params if GET, else POST body. Also, the nature of request.input('key') lacks an element of explicitness.
What do we currently have to do now?
As above.
Describe the solution you'd like
A modification of request.input('key'), to return query params if GET, else return body && query params for POST.
Also, addition of request.query('key') in order to make the intent of the programmer explicit.
Happy to take on this pull req. myself.
Describe alternatives you've considered
This could be amended by simply modifying request.input('key'), but in line with trying to match up to Laravel as much as possible, it is prudent to add request.query('key') at the same time.
Is this a breaking change?
No.
Additional context
None
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently request.input('key') will return the query string params if GET, else POST body. Also, the nature of request.input('key') lacks an element of explicitness.
What do we currently have to do now?
As above.
Describe the solution you'd like
A modification of request.input('key'), to return query params if GET, else return body && query params for POST.
Also, addition of request.query('key') in order to make the intent of the programmer explicit.
Happy to take on this pull req. myself.
Describe alternatives you've considered
This could be amended by simply modifying request.input('key'), but in line with trying to match up to Laravel as much as possible, it is prudent to add request.query('key') at the same time.
No.
Additional context
None
The text was updated successfully, but these errors were encountered: