Post fares/expenses on PIREP to Airline journal #130
This commit is contained in:
@@ -8,6 +8,9 @@ $factory->define(App\Models\Fare::class, function (Faker $faker) {
|
||||
'code' => $faker->text(5),
|
||||
'name' => $faker->text(20),
|
||||
'price' => $faker->randomFloat(2, 100, 1000),
|
||||
'cost' => function (array $fare) {
|
||||
return round($fare['price'] / 2);
|
||||
},
|
||||
'capacity' => $faker->randomFloat(0, 20, 500),
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user