I am working with Laravel 4,
I am validating a form with the validator :
$validator = Validator::make(Input::all(), $rules);
When it fails :
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
}
How can i return inputs excepting multiple inputs, not only the password ?
I've tried Input::except('password','avatar');
but it's not working.
Any help would be greatly appreciated!
Actually, i found that i forget to put the Input::old('')
to repopulate the input,
So the solution is exaclty what i've tried Input::except('password','avatar');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With