Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在laravel 5中使用Request::old()进行动态输入_Html_Laravel 5_Request - Fatal编程技术网

Html 如何在laravel 5中使用Request::old()进行动态输入

Html 如何在laravel 5中使用Request::old()进行动态输入,html,laravel-5,request,Html,Laravel 5,Request,如果我有动态而不更改的名称,我很困惑如何在laravel中使用Request::old()。下面是我的代码: <input type="text" name="name[]" value="{{ Request::old('name') }}"><br> <input type="text" name="name[]" value="{{ Request::old('name') }}"><br> <input type="text" nam

如果我有动态
而不更改
的名称,我很困惑如何在laravel中使用
Request::old()
。下面是我的代码:

<input type="text" name="name[]" value="{{ Request::old('name') }}"><br>
<input type="text" name="name[]" value="{{ Request::old('name') }}"><br>
<input type="text" name="name[]" value="{{ Request::old('name') }}"><br>
<input type="text" name="name[]" value="{{ Request::old('name') }}"><br>





尝试使用{{old('name')}在laravel中编写代码



它现在起作用了。我认为这与
Request::old('name')