Laravel change input value

You can use Input::merge() to replace single items.

Input::merge(['inputname' => 'new value']);

Or use Input::replace() to replace the entire input array.

Input::replace(['inputname' => 'new value']);

Here’s a link to the documentation

Leave a Comment