Major refactoring and cleanup of ACARS/Pirep API
This commit is contained in:
@@ -4,8 +4,8 @@ use Faker\Generator as Faker;
|
||||
|
||||
$factory->define(App\Models\Acars::class, function (Faker $faker) {
|
||||
return [
|
||||
'id' => substr($faker->unique()->sha1, 28, 12),
|
||||
'pirep_id' => '', # fill this out by
|
||||
'id' => null,
|
||||
'pirep_id' => null,
|
||||
'log' => $faker->text(200),
|
||||
'lat' => $faker->latitude,
|
||||
'lon' => $faker->longitude,
|
||||
|
||||
@@ -11,7 +11,7 @@ $factory->define(App\Models\Pirep::class, function (Faker $faker) {
|
||||
static $raw_data;
|
||||
|
||||
return [
|
||||
'id' => substr($faker->unique()->sha1, 28, 12),
|
||||
'id' => null,
|
||||
'airline_id' => function () { # OVERRIDE THIS IF NEEDED
|
||||
return factory(App\Models\Airline::class)->create()->id;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user