为什么不工作老 Laravel
Why does not work old in Laravel
我有来自:
{{ Form::open(array('url' => 'announcements', 'class' => 'form-inline', 'method' => 'GET')) }}
表单中的复选框:
{{Form::checkbox('only_subscriptions', '1', old('only_subscriptions'))}}
提交后我得到空old()
:
old('only_subscriptions')
您将在 redirect()
中使用 ->withInput()
,而不是在 view()
中。
我有来自:
{{ Form::open(array('url' => 'announcements', 'class' => 'form-inline', 'method' => 'GET')) }}
表单中的复选框:
{{Form::checkbox('only_subscriptions', '1', old('only_subscriptions'))}}
提交后我得到空old()
:
old('only_subscriptions')
您将在 redirect()
中使用 ->withInput()
,而不是在 view()
中。