title: How can I redirect with old input in Laravel?
body: <p>I have a login modal. When the user log-in fail the authentication, I want to redirect back to this modal with :</p>
  <ul>
  <li>error message(s)</li>
  <li>and old input(s).</li>
  </ul>
  <p><img src="https://i.stack.imgur.com/Cv7Rt.png" alt="enter image description here" /></p>
  <hr />
  <h1>Controller</h1>
  <pre><code>// if Auth Fail 
  return Redirect::to('/')
                  -&gt;with('error','Username/Password Wrong')
                  -&gt;withInput(Request::except('password'))
                  -&gt;withErrors($validator);
  </code></pre>
  <hr />
  <h1>Form</h1>
  <pre><code>{!! Form::open(array('url' =&gt; '/', 'class' =&gt; 'login-form')) !!}
  
    &lt;div class=&quot;form-group&quot;&gt;
      &lt;label for=&quot;username&quot;&gt;Username&lt;/label&gt;
      &lt;input type=&quot;text&quot; class=&quot;form-control&quot;  id=&quot;username&quot; name=&quot;username&quot; placeholder=&quot;Enter Username&quot; required&gt;
    &lt;/div&gt;
    &lt;div class=&quot;form-group&quot;&gt;
      &lt;label for=&quot;password&quot;&gt;Password&lt;/label&gt;
      &lt;input type=&quot;password&quot; class=&quot;form-control&quot; id=&quot;password&quot; name=&quot;password&quot; placeholder=&quot;Enter Password&quot; required&gt;
    &lt;/div&gt;
    &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Login&lt;/button&gt;
  
  {!! Form::close() !!}
  </code></pre>
  <hr />
  <p>As you can see as part of my image, the error message seem to display, but the old input of username doesn't seem to populate.</p>
  <p>Can someone please correct me ?
  Did I forget to do anything ?
  What is the most efficient way in Laravel to accomplish something like this ?</p>