it's not an array, it's just a string which is why you only get one parameter from count
Nov 11, 2021
7
Level 7
Is a get request with array of numbers valid
I'm just wanting to sent a bunch of ids in a get request and im not sure if its really valid - the request could be 20 or 50 ids so I don't think its ideal to have them all as query params?
If its valid, I am also getting a weird problem when i do $request-all() with an empty request body, when I then do count($request-all()) its always returning 1 , event if request is totally empty ?
The request body i'm trying in Postman test is simply [1, 2, 3, 4, 5]
thanks
Please or to participate in this conversation.