airportRepo = $airportRepo; } /** * Do a lookup, via vaCentral, for the airport information * @param $id * @return AirportResource */ public function get($id) { $id = strtoupper($id); AirportResource::withoutWrapping(); return new AirportResource($this->airportRepo->find($id)); } /** * Do a lookup, via vaCentral, for the airport information * @param $id * @return AirportResource */ public function lookup($id) { $airport = Cache::remember( config('cache.keys.AIRPORT_VACENTRAL_LOOKUP.key') . $id, config('cache.keys.RANKS_PILOT_LIST.time'), function () use ($id) { return AirportLookup::get($id); } ); return new AirportResource(collect($airport)); } }