title: How to update row and return id?
body: <p>I use this function ORM to update row in table:</p>
  
  <pre><code>$client = Client::where("unique_code", $this-&gt;unique_code)-&gt;whereHas('types', function ($query) {
    $query-&gt;where("type", $this-&gt;type);
  })-&gt;update(["status" =&gt; 1]);
  </code></pre>
  
  <p>How to return <code>id</code> of updated row?</p>