title: How can i get the last insert id in the create:: in laravel
body: <p>How can i get the last inserted id in the laravel. I am using the given below eloquent way to insert the record</p>
  
  <pre><code>OutSideCity::create($Tariff3Data);
  </code></pre>
  
  <p><strong>How can i get the last insert id for the above query ?</strong></p>
  
  <p>If i use </p>
  
  <pre><code>$FreshTripEntry-&gt;save();
  </code></pre>
  
  <p>I can get the Lastinsert id by <code>$Lastid = $FreshTripEntry-&gt;id;</code></p>
  
  <p>But how can i get the last insert id for the <code>OutSideCity::create($Tariff3Data);</code> ?</p>