title: How to increment a column using Eloquent Model in Laravel 4
body: <p>I am not sure how to increment the value in a column using Eloquent Model in Laravel 4?
  This is what I currently have and I am not sure how correct is this.</p>
  
  
  
  <pre class="lang-php prettyprint-override"><code>$visitor = Visitor::where('token','=','sometoken')-&gt;first();
  if(isset($visitor)){
      $visitor-&gt;increment('totalvisits');
  }else{
      Visitor::create(array(
      'token'=&gt;'sometoken',
      'totalvisits'=&gt;0
      ));
  }
  </code></pre>
  
  <p>With Query Builder we could do it using</p>
  
  <pre class="lang-php prettyprint-override"><code>DB::table('visitors')-&gt;increment('totalvisits');
  </code></pre>