9e5386264f
* SimBrief integration #405 * Add briefing as API response; add acars_xml field #405
22 lines
589 B
PHP
22 lines
589 B
PHP
<?php
|
|
|
|
/** @var \Illuminate\Database\Eloquent\Factory $factory */
|
|
|
|
use Carbon\Carbon;
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(App\Models\SimBrief::class, function (Faker $faker) {
|
|
return [
|
|
'id' => $faker->unique()->numberBetween(10, 10000000),
|
|
'user_id' => null,
|
|
'flight_id' => null,
|
|
'pirep_id' => null,
|
|
'acars_xml' => '',
|
|
'ofp_xml' => '',
|
|
'created_at' => Carbon::now('UTC')->toDateTimeString(),
|
|
'updated_at' => function (array $sb) {
|
|
return $sb['created_at'];
|
|
},
|
|
];
|
|
});
|