Just return the result when you query and you could get the id of that INSERT.
I use the following:
$main = new yourtablename(array(
'userID' => $this->theUserID,
'userName' => encrypt($request->unameName)));
$main->save()
$main->id;
I am sure there are other ways, this is what I am currently using.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community