In laravel, we can get the input value via Input::get(\'inputname\'). I try to change the value by doing this Input::get(\'inputname\') = \"new value\";>
Input::get(\'inputname\')
Input::get(\'inputname\') = \"new value\";>
You can use Input::merge() to replace single items.
Input::merge()
Input::merge(['inputname' => 'new value']);
Or use Input::replace() to replace the entire input array.
Input::replace()
Input::replace(['inputname' => 'new value']);
Here's a link to the documentation