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()
->
After saving the data into the DB you just call $insertedId = $user->id; where $user->save() is called before the step.
$insertedId = $user->id;
$user->save()
more info here