Save PIREP route to ACARS data table #102
This commit is contained in:
15
app/Database/factories/NavdataFactory.php
Normal file
15
app/Database/factories/NavdataFactory.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
use Faker\Generator as Faker;
|
||||
use \App\Models\Enums\NavaidType;
|
||||
|
||||
$factory->define(App\Models\Navdata::class, function (Faker $faker) {
|
||||
return [
|
||||
'id' => substr($faker->unique()->word, 0, 5),
|
||||
'name' => $faker->unique()->text(10),
|
||||
'type' => $faker->randomElement([NavaidType::VOR, NavaidType::NDB]),
|
||||
'lat' => $faker->latitude,
|
||||
'lon' => $faker->longitude,
|
||||
'freq' => $faker->randomFloat(2, 100, 1000),
|
||||
];
|
||||
});
|
||||
Reference in New Issue
Block a user