In Laravel 4, when you perform a DB::insert(), how can you get the ID of the row that has just been inserted? Similar what we have with the function ->
DB::insert()
->
There is a insertGetId method.
$id = DB::table('users')->insertGetId( array('id' => 1, 'name' => 'Dayle Rees') );