Data cleanup; set flight ident in response

This commit is contained in:
Nabeel Shahzad
2018-05-13 16:59:35 -05:00
parent 63897a5666
commit c8a9ebd26d
4 changed files with 13 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ class UserBid extends Resource
'id' => $this->id,
'user_id' => $this->user_id,
'flight_id' => $this->flight_id,
'flight' => Flight::collection($this->whenLoaded('flight'))
'flights' => Flight::collection($this->whenLoaded('flight'))
#'created_at' => $this->created_at,
#'updated_at' => $this->updated_at,
];