Support the ongoing development of Laravel.io →
Requests Input Blade
Last updated 7 months ago.
0

Hi,

Instead of passing array in GET request, try to pass an array as JSON string using json_encode

such that your code will get update like following

$image=array(); $image["height"]=$height; $image["width"]=$width; $imageJson=json_encode($image); return route('getimage',array('id'=>$mi['id'],'myarray'=>$imageJson));

And then in the action use firstly below line:

$myImageArray=json_decode($request->myarray);

to decode from json string to array.

Thanks

1

Sign in to participate in this thread!

Cloudways

Your banner here too?

sredXNY sredxny Joined 29 Nov 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.