From 77d0d2bcd0c5d7338d35436fd959b108d44c0499 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 24 Jan 2018 16:22:49 -0600 Subject: [PATCH] Add comments to the PIREP endpoint --- app/Http/Resources/Pirep.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Resources/Pirep.php b/app/Http/Resources/Pirep.php index 34c60e4f..8e23d332 100644 --- a/app/Http/Resources/Pirep.php +++ b/app/Http/Resources/Pirep.php @@ -20,6 +20,7 @@ class Pirep extends Resource $pirep['dpt_airport'] = new Airport($this->dpt_airport); $pirep['arr_airport'] = new Airport($this->arr_airport); $pirep['position'] = new Acars($this->position); + $pirep['comments'] = PirepComment::collection($this->comments); return $pirep; }