How can I redirect with old input in Laravel?
问题 I have a login modal. When the user log-in fail the authentication, I want to redirect back to this modal with : error message(s) and old input(s). Controller // if Auth Fail return Redirect::to('/') ->with('error','Username/Password Wrong') ->withInput(Request::except('password')) ->withErrors($validator); Form {!! Form::open(array('url' => '/', 'class' => 'login-form')) !!} <div class="form-group"> <label for="username">Username</label> <input type="text" class="form-control" id="username"