title: Redirecting Error in laravel 4.2
body: <p>Following are methods in UserController</p>
  
  <pre><code>     public function callSignupForm($email) {
  
              return View::make('Signup')-&gt;with('email', $email);
  
      }
  
      public function SignuptoDatabase() {
  
          $input = Input::all();
  
          $email = Input::get('emailText');
  
  
          $name = Input::get('nameText');
          $username = Input::get('usernameText');
          $password = Input::get('pwd');
          $confirmpassword = Input::get('cpwd');
          $Gender = Input::get('Gender');
  
          $rules = array(
              'email' =&gt; 'required|unique:users',
              'name' =&gt; 'required',
              'username' =&gt; 'required|unique:users',
              'password' =&gt; 'required|min:8',
              'confirmpassword' =&gt; 'same:password',
              'Gender' =&gt; 'required|in:Male,Female'
          );
  
          $validator = Validator::make($input, $rules);
  
          if ($validator-&gt;passes()) {
  
              $user = new User;
              $user-&gt;name = $name;
              $user-&gt;username = $username;
              $user-&gt;password = password;
              $user-&gt;email = email;
              $user-&gt;save();
          }
  return Redirect::action('UserController@callSignupForm')-&gt;withErrors($validator)-&gt;with('email', $email);
      }
  </code></pre>
  
  <p>Signup.blade.php</p>
  
  <pre><code>     {{Form::open(array('url'=&gt;'signuptoDatabase'))}}
               @foreach ($errors-&gt;all() as $error)
  
                              &lt;p class="errorMessage"&gt;{{ $error }}&lt;/p&gt;
  
                              @endforeach
              &lt;div class="form-group"&gt;
                  &lt;label&gt;Email&lt;/label&gt; 
                  &lt;input type="text" class="form-control" name="emailText" value='{{$email}}'/&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label&gt;Name&lt;/label&gt;
                  &lt;input type="text" class="form-control" name="nameText"&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label&gt;Username&lt;/label&gt;
                  &lt;input type="text" class="form-control" id="usernameText"&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label&gt;Password&lt;/label&gt;
                  &lt;input type="password" class="form-control" id="pwd" autocomplete="off"/&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label&gt;ConfirmPassword&lt;/label&gt;
                  &lt;input type="password" class="form-control" id="cpwd" autocomplete="off"/&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label&gt;Gender&lt;/label&gt;
                  &lt;label&gt;&lt;input type="radio" id="Gender" name="Male" checked="true"&gt;Male&lt;/label&gt;
                  &lt;label&gt;&lt;input type="radio" id="Gender" name="Female"&gt;Female&lt;/label&gt;
              &lt;/div&gt;
  
                 &lt;/div&gt;  
              &lt;div class="panel-footer clearfix"&gt;
                  &lt;div class="pull-right"&gt;
                  &lt;button type="submit" Id="registersubmit" class="btn btn-success btn-lg" &gt;Submit&lt;/button&gt;
              &lt;/div&gt;
  &lt;/div&gt;            
          {{Form::close()}}
  </code></pre>
  
  <p>After calling , SignuptoDatabase function in UserController. If there any errors. I'm trying to redirect to same page with errors and Input.</p>
  
  <p>I tried </p>
  
  <pre><code>return Redirect::action('UserController@callSignupForm')-&gt;withInput()-&gt;withErrors($validator);
  
  Redirect::back()
  </code></pre>
  
  <p>and also through routing, my route looks as</p>
  
  <pre><code>Route::post('callsignupform','UserController@callSignupForm');
  </code></pre>
  
  <p>nothing works..Can any one suggest me solution...</p>