title: How to update specific column data at a time by Laravel 5.2?
body: <p>I have a <code>users</code> table where i have a <code>column</code> named <code>rank_id</code>. Now i want to update all users <code>rank_id</code> into <code>2</code> where <code>rank_id = 6</code> at a time(click by one button). How can i do that? I have tried so far:</p>
  
  <p><strong>Routes:</strong></p>
  
  <pre><code>Route::post('/test/rankup2', array('as' =&gt; 'user.rank2.post', 'uses' =&gt; 'TestController@RankUpgradeTwo'));
  </code></pre>
  
  <p><strong>TestController.php:</strong></p>
  
  <pre><code>function RankUpgradeTwo(Request $request)
  {
      $memberAll = User::where('rank_id','=',6)-&gt;firstOrFail();
      //dd($memberAll);
  
      $memberAll-&gt;rank_id = '2';
  
      $memberAll-&gt;save();
      return Redirect::to('user/test')-&gt;with('message', 'Successfully Ugraded into Rank 2');
  
  }
  </code></pre>
  
  <p><strong>testScript.blade.php:</strong></p>
  
  <pre><code>    &lt;form method="POST"
          action="{{ route('user.rank2.post') }}"
          class="form-horizontal stdform"
          autocomplete="off"
          enctype="multipart/form-data"
          id="edit-form"
          role="form"
          {{--v-on:submit="submitChange" --}}
          novalidate /&gt;
      {{ csrf_field() }}
  
  
  &lt;div class="control-group action"&gt;
  
  
      &lt;button type="submit" name="submit" value="submit" id="submit" class="btn btn-blue btn-left"&gt;
         Rank Up 2
      &lt;/button&gt;       
  
  &lt;/div&gt;
  
  {{ Form::close() }}
  </code></pre>
  
  <p>This shows me successfull message but i don't see any update in database. Thanks in advance.</p>