Support the ongoing development of Laravel.io →
Requests Input Blade
Last updated 2 years 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

gzun liked this reply

1

Sign in to participate in this thread!

Eventy

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.

© 2024 Laravel.io - All rights reserved.