I work with Laravel 4,
I check the form using the validator:
$validator = Validator::make(Input::all(), $rules);
On failure:
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, except for several inputs, and not just the password?
I tried Input::except('password','avatar'); but it does not work.
Any help would be greatly appreciated!
php validation laravel laravel-4
Obama
source share