title: Laravel SQL select and update model
body: <p>I try select from database and update values with model, but get error: </p>
  
  <pre><code>Call to undefined method stdClass::save()
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>$user = db::table('users')-&gt;where('name', 'John')-&gt;where('age', 30)-&gt;first();
  if($user) {
      $user-&gt;name = 'Tom';
      $user-&gt;age = 31;
      $user-&gt;save();
  }
  </code></pre>
  
  <p>i get this error: </p>