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 it possible to tell the laravel HTTP client to use build_query in Psr7 to build the query string? The difference is that when there is array of keys with the same name, it outputs them as is without adding [#] after the key. I know I can call this ahead of time and just pass the string output to Http::get(), I'm just wondering if there is an option for HTTP client to be told to use one vs the other?
key=value1&key=value2 vs key[0]=value1&key[1]=value2
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to tell the laravel HTTP client to use build_query in Psr7 to build the query string? The difference is that when there is array of keys with the same name, it outputs them as is without adding [#] after the key. I know I can call this ahead of time and just pass the string output to Http::get(), I'm just wondering if there is an option for HTTP client to be told to use one vs the other?
key=value1&key=value2
vskey[0]=value1&key[1]=value2
Beta Was this translation helpful? Give feedback.
All reactions