2017-12-26 05:19:34 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
|
|
|
|
$factory->define(App\Models\Acars::class, function (Faker $faker) {
|
|
|
|
return [
|
2018-03-20 09:50:40 +08:00
|
|
|
'id' => null,
|
|
|
|
'pirep_id' => null,
|
|
|
|
'log' => $faker->text(100),
|
|
|
|
'lat' => $faker->latitude,
|
|
|
|
'lon' => $faker->longitude,
|
2018-05-04 04:36:26 +08:00
|
|
|
'distance' => $faker->randomFloat(2, 0, 6000),
|
2018-03-20 09:50:40 +08:00
|
|
|
'heading' => $faker->numberBetween(0, 359),
|
|
|
|
'altitude' => $faker->numberBetween(20, 400),
|
|
|
|
'vs' => $faker->numberBetween(-5000, 5000),
|
|
|
|
'gs' => $faker->numberBetween(300, 500),
|
2017-12-26 05:19:34 +08:00
|
|
|
'transponder' => $faker->numberBetween(200, 9999),
|
2018-03-20 09:50:40 +08:00
|
|
|
'autopilot' => $faker->text(10),
|
2018-05-04 04:36:26 +08:00
|
|
|
'fuel' => $faker->randomFloat(2, 100, 1000),
|
2018-03-20 09:50:40 +08:00
|
|
|
'fuel_flow' => $faker->randomFloat(2, 100, 1000),
|
|
|
|
'sim_time' => $faker->dateTime('now', 'UTC'),
|
2017-12-26 05:19:34 +08:00
|
|
|
];
|
|
|
|
});
|