Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.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
Laravel 为什么不在拉雷维尔工作_Laravel_Laravel 5.4 - Fatal编程技术网

Laravel 为什么不在拉雷维尔工作

Laravel 为什么不在拉雷维尔工作,laravel,laravel-5.4,Laravel,Laravel 5.4,我来自: {{Form::open(数组('url'=>'公告','class'=>'表单内联','method'=>'GET'))} 和复选框的格式: {{Form::checkbox('only_subscriptions', '1', old('only_subscriptions'))}} 提交后,我得到空的old(): 您将在重定向()中使用->withInput(),而不是在视图()中使用是否正在将输入闪烁到会话中?我在ETR提交时返回数据对象:返回视图::make('announ

我来自:

{{Form::open(数组('url'=>'公告','class'=>'表单内联','method'=>'GET'))}

和复选框的格式:

{{Form::checkbox('only_subscriptions', '1', old('only_subscriptions'))}}
提交后,我得到空的
old()


您将在
重定向()
中使用
->withInput()
,而不是在
视图()
中使用

是否正在将输入闪烁到会话中?我在ETR提交时返回数据对象:
返回视图::make('announcements.index',[“announcements”=>$announces,“categories”=>$categories,“country”=>$country,“city”=>$city])->withInput()数据?我不知道你想做什么,所以很难说你应该做什么
old()
用于在该特定会话中调用以前提交的数据…当我返回视图中的数据并使用withInput时,您能否与我分享一个示例?
old('only_subscriptions')