laravel 5.5 save and get id with model code example Example: laravel model save get id $data->save(); $data->id;