2017-12-13 11:50:55 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
|
|
|
|
$factory->define(App\Models\Subfleet::class, function (Faker $faker) {
|
|
|
|
return [
|
2018-08-27 00:40:04 +08:00
|
|
|
'id' => null,
|
|
|
|
'airline_id' => function () {
|
2018-02-07 03:11:42 +08:00
|
|
|
return factory(App\Models\Airline::class)->create()->id;
|
|
|
|
},
|
2018-03-20 09:50:40 +08:00
|
|
|
'name' => $faker->unique()->text(50),
|
|
|
|
'type' => $faker->unique()->text(7),
|
2018-02-24 06:07:53 +08:00
|
|
|
'ground_handling_multiplier' => $faker->numberBetween(50, 200),
|
2017-12-13 11:50:55 +08:00
|
|
|
];
|
|
|
|
});
|