phpvms/app/Database/factories/SubfleetFactory.php

16 lines
488 B
PHP
Raw Normal View History

<?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 () {
return factory(App\Models\Airline::class)->create()->id;
},
'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),
];
});