airlineRepo = $airlineRepo; } /** * Return all the airlines, paginated */ public function index(Request $request) { $airports = $this->airlineRepo ->orderBy('name', 'asc') ->paginate(50); return AirlineResource::collection($airports); } /** * Do a lookup, via vaCentral, for the airport information * @param $id * @return AirlineResource */ public function get($id) { $id = strtoupper($id); AirlineResource::withoutWrapping(); return new AirlineResource($this->airlineRepo->find($id)); } }