title: How to get the last insert ids from laravel 4
body: <p>I am using laravel 4. I have a table called documents. I am inserting data in the Document table using Document::insert() function.
  My code is given below</p>
  
  <pre><code>$statuses = array();
  foreach($content as $i){
      array_push($statuses, array(
          'user_id' =&gt; $user-&gt;id,
          'document' =&gt; $i-&gt;text
      ));
  }
  $users = Document::insert($statuses);
  </code></pre>
  
  <p>Now I want to get the insert ids. But the $users variable only gives me a boolean variable called true. How can I get the insert ids.</p>