Hi all, thanks for taking the time to look at my post :)
im fairly new to PHP and Laravel, im trying to make a URL with query paramaters, to call an API:
$devices = MyModel::pluck('uuid')->all(); here i'm pulling a single column from my table and then trying to generate my URL string like this:
'Authorization' => "Bearer $accessToken",
])->withQueryParameters(['devicesUuids' => $chunk ])->get(
"https://euabc.cdb",
);
however my string is returning like so:
https://euabc.cdb?devicesUuids%5B0%5D=abc?devicesUuids5B0%5D=thd&devicesUuids5B0%5D=123
when i print out my array it display's like:
[0] => value
[1] => value
[2] => value
has anyone got any advice how i can remote the %5B0%5D which i think is [ ]