'Scoot', 'IATA_code' => 'TR', 'ICAO_code' => 'TGW', 'internal_name' => 'scoot-new', 'logo' => 'TR.png', 'active' => true, 'country_id' => Country::whereCode('SG')->first()->id, ]); Aircraft::where('manufacturer_code', 'ATR') ->each(function ($aircraft) { $aircraft->update([ 'model_full_name' => str_replace('ATR-', '', $aircraft->model_full_name), ]); }); Aircraft::where('manufacturer_code', 'AIRBUS') ->each(function ($aircraft) { $aircraft->update([ 'model_full_name' => str_replace('A-', 'A', $aircraft->model_full_name), ]); }); } /** * Reverse the migrations. */ public function down(): void { // } };