I need to change value of my request parameter like this:
$request->name = "My Value!";
I use this code but does not work:
$request->offsetSet('img', $img);
I got this error:
Error : Call to undefined method Illuminate\Http\Request::put()
How to solve this?