Laravel change input value

后端 未结 6 1622
灰色年华
灰色年华 2020-12-01 05:45

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\";

6条回答
  •  情歌与酒
    2020-12-01 06:31

    Try this,it will help you.

    $request->merge(array('someIndex' => "yourValueHere"));
    

提交回复
热议问题