laravel get id of saved record code example Example: laravel model save get id $data->save(); $data->id;