generate a hex code for an aircraft on creation #33

This commit is contained in:
Nabeel Shahzad
2018-02-12 20:58:23 -06:00
parent 2678514077
commit 5c58dfe1ae
5 changed files with 26 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ $factory->define(App\Models\Aircraft::class, function (Faker $faker) {
'icao' => $faker->unique()->text(5),
'name' => $faker->unique()->text(50),
'registration' => $faker->unique()->text(10),
'hex_code' => \App\Support\ICAO::createHexCode(),
'active' => true,
'created_at' => $faker->dateTimeBetween('-1 week', 'now'),
'updated_at' => function (array $pirep) {