make sure resources return the data object #186

This commit is contained in:
Nabeel Shahzad
2018-02-10 17:34:46 -06:00
parent e57fb5a7c6
commit 21e13b6b92
13 changed files with 45 additions and 58 deletions

View File

@@ -10,6 +10,7 @@ class Flight extends Resource
{
$flight = parent::toArray($request);
$flight['field'] = true;
$flight['airline'] = new Airline($this->airline);
$flight['subfleets'] = Subfleet::collection($this->subfleets);