airline); $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); $pirep['user'] = [ 'id' => $this->user->id, 'name' => $this->user->name, 'home_airport_id' => $this->user->home_airport_id, 'curr_airport_id' => $this->user->curr_airport_id, ]; return $pirep; } }