refactorings of pirep/acars api calls; separate field calls

This commit is contained in:
Nabeel Shahzad
2018-05-09 12:45:24 -05:00
parent 9542c23717
commit 4fa024045d
20 changed files with 527 additions and 288 deletions

View File

@@ -58,7 +58,8 @@ class Pirep extends Resource
'curr_airport_id' => $this->user->curr_airport_id,
];
$pirep['fields'] = $this->fields;
# format to kvp
$pirep['fields'] = new PirepFieldCollection($this->fields);
return $pirep;
}