title: Laravel 5.4 Redirect not working
body: <p>There is no problem adding data to the database but after adding the data to the database, redirect is not working. It keeps me on the "saving" page</p>
  
  <p>Here is my controller;</p>
  
  <pre><code>public function postSave(Request $gamedata)
  {
      $postcheck = Validator:: make($gamedata -&gt; all(), array(
  
          'game_name' =&gt; 'required|min:3',
          'game_year' =&gt; 'numeric',
          'game_type' =&gt; 'required',
      ));
     if ($postcheck-&gt; fails()) {
         return redirect() -&gt; to('/')-&gt;withErrors($postcheck)-&gt;withInput();
     } else {
  
         $game_name = $gamedata -&gt; input('game_name');
         $game_year = $gamedata -&gt; input('game_year');
         $game_type = $gamedata -&gt; input('game_type');
  
         $saving= games::create(array('name' =&gt;$game_name , 'year' =&gt;$game_year , 'type' =&gt;$game_type));
     }
  if ($saving){
      redirect() -&gt; route('index') ;
  }
  return null;
  }
  </code></pre>
  
  <p>my form;</p>
  
  <pre><code>&lt;div class="col-md-6"&gt;
      &lt;form action="{{url('/saving')}}" method="post"&gt;
          {{csrf_field()}}
          &lt;div class="form-group"&gt;
              &lt;label for="game_name"&gt;Game Name&lt;/label&gt;
              &lt;input type="text" class="form-control" name="game_name" placeholder="Game Name"&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="exampleInputPassword1"&gt;Release Date&lt;/label&gt;
              &lt;input type="number" class="form-control" name="game_year" placeholder="Release Date"&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="Game_Type"&gt;Game Type&lt;/label&gt;
              &lt;input type="text" class="form-control" name="game_type" placeholder="Game type"&gt;
          &lt;/div&gt;
          &lt;button type="submit" class="btn btn-default" name="gameinfo_save"&gt;Add a new game&lt;/button&gt;
  
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and routes;</p>
  
  <pre><code>    Route::get('/', array ('as' =&gt; 'index', 'uses' =&gt;'homecontroller@getIndex')); 
      Route::post('/saving', array ('as' =&gt; 'saving', 'uses' =&gt;'homecontroller@postSave'));
  </code></pre>
  
  <p>This not a project, I'm just trying to learn.. So where do i mistake ?</p>