2018-01-06 00:45:34 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* id: 2
|
|
|
|
name: Junior First Officer
|
|
|
|
hours: 10
|
|
|
|
auto_approve_acars: 1
|
|
|
|
auto_approve_manual: 1
|
|
|
|
*/
|
|
|
|
$factory->define(App\Models\Rank::class, function (Faker $faker) {
|
|
|
|
return [
|
2018-02-07 03:11:42 +08:00
|
|
|
'id' => null,
|
2018-01-06 00:45:34 +08:00
|
|
|
'name' => $faker->unique()->text(50),
|
|
|
|
'hours' => $faker->numberBetween(10, 50),
|
|
|
|
'auto_approve_acars' => 0,
|
|
|
|
'auto_approve_manual' => 0,
|
|
|
|
'auto_promote' => 0,
|
|
|
|
];
|
|
|
|
});
|