How to get last insert id in laravel

QuestionsCategory: LaravelHow to get last insert id in laravel
Anuj Kumar asked 4 months ago

After save, $data->id should be the last id inserted.

return Response::json(array('success' => true, 'last_id' => $data->id), 200);

Your Answer

Related Posts

Begin typing your search above and press enter to search. Press ESC to cancel.

Back To Top