This should normally work just fine... Are you sure the data is sent correctly? You can dump the data by doing something like this
dd($request->all());
You can then compare it with another browser and see if you get the same results.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I am trying to send some POST data in a multiple select. Like that:
<select name="datas[]" multiple>
...
</select>
In my controller, I do that:
foreach($request->datas as $data){
...
}
Everything work perfectly. But It does not work with Edge. I get a 500 error. $request->datas doesn't seem to be an array. And if I cast it I don't get the 500 error but the foreach is ignored...
Is Edge incompatible with multiple select ?
Thanks !
Please or to participate in this conversation.