Major refactoring for PIREP statuses and states to accomodate ACARS/route data

This commit is contained in:
Nabeel Shahzad
2017-12-19 20:19:36 -06:00
parent ac4958a2be
commit 0375bb420f
38 changed files with 352 additions and 170 deletions

View File

@@ -116,5 +116,10 @@ return [
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
'Yaml' => Symfony\Component\Yaml\Yaml::class,
# ENUMS
'PirepState' => App\Models\Enums\PirepState::class,
'PirepStatus' => App\Models\Enums\PirepStatus::class,
],
];

View File

@@ -17,32 +17,11 @@ return [
'SUSPENDED' => 3,
],
'sources' => [
'MANUAL' => 0,
'ACARS' => 1,
],
'pirep_status' => [
'PENDING' => 0,
'ACCEPTED' => 1,
'REJECTED' => -1,
],
'fuel_types' => [
'100LL' => 0,
'JETA' => 1,
'MOGAS' => 2,
],
'days' => [
'MONDAY' => 1,
'TUESDAY' => 2,
'WEDNESDAY' => 4,
'THURSDAY' => 8,
'FRIDAY' => 16,
'SATURDAY' => 32,
'SUNDAY' => 64
],
];