Add pirep fields to the API response; add tests for setting/getting them

This commit is contained in:
Nabeel Shahzad
2018-02-06 13:59:40 -06:00
parent de0c71cb06
commit e69d9f4c38
3 changed files with 30 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ class Pirep extends Resource
'curr_airport_id' => $this->user->curr_airport_id,
];
$pirep['fields'] = $this->fields;
return $pirep;
}
}