我正在与Laravel 4合作,@H_403_1@我正在使用验证器验证表单:
@H_403_1@$validator = Validator :: make(Input :: all(),$rules);
@H_403_1@失败时:
if ($validator->fails()) { return Redirect::to('register/test') ->withErrors($validator) ->withInput(Input::except('password')); // send back the input so that we can repopulate the form }@H_403_1@除了多个输入,我怎样才能返回输入,而不仅仅是密码? @H_403_1@我尝试过Input :: except(‘password’,’avatar’);但它不起作用. @H_403_1@任何帮助将不胜感激!