title: How to get last insert id in Eloquent ORM laravel
body: <p>I am performing a database operation with "Eloquent ORM in Laravel". I just want to take the last insert id (not the maximum id) in the database.</p>
  
  <p>I searched to get last insert id in laravel Eloquent ORM, I got following link (<a href="https://stackoverflow.com/q/21084833/2960703">Laravel, get last insert id using Eloquent</a>) that is refer to get last insert id from following function "<code>$data-&gt;save()</code>".</p>
  
  <p>But I need to get </p>
  
  <p>"<code>Model::create($data)</code>";</p>
  
  <p><strong>My Query:</strong></p>
  
  <pre><code>GeneralSettingModel::create($GeneralData);
  
  User::create($loginuserdata);
  </code></pre>
  
  <p>How can I retrieve the last inserted id?</p>