title: Last insert id in laravel and mongo db using query builder?
body: <p>How can I get the last inserted <code>id</code> after inserting a row in laravel and MongoDB? My code for inserting a row is:</p>
  
  <pre><code>$insertData = DB::collection('hotels')-&gt;insert($insertArray);
  </code></pre>