How to get next id of autogenerated field in laravel for specific table?
<p>I am looking for something like :</p>
<pre><code>DB::table('users')-&gt;getNextGeneratedId();
</code></pre>
<p>not</p>
<pre><code>$user-&gt;save($data)
$getNextGeneratedId = $user-&gt;id;
</code></pre>
<p>Does anybody know how to achieve this?</p>