user; return [ 'id' => $this->id, 'comment' => $this->comment, 'created_at' => $this->created_at, 'user' => [ 'id' => $user->id, 'pilot_id' => $user->pilot_id, 'ident' => $user->ident, 'name' => $user->name, ], ]; } }