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