Laravel change input value

后端 未结 6 1638
灰色年华
灰色年华 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:33

    I also found this problem, I can solve it with the following code:

    public function(Request $request)
    {
        $request['inputname'] = 'newValue';
    }
    

    Regards

提交回复
热议问题