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
gzun liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community