laravel-airport maintained by webappid
Description
Laravel airport package
Author
Last update
2020/04/04 11:06
(dev-master)
License
Downloads
92
Airport package for laravel
the data from this package based on https://openflights.org/data.html#airport
how to install:
- install via composer
composer require webappid/laravel-airport - seeding the data
webappid:airport:seed
example get airport by country :
<?php
use WebAppId\Airport\Services\AirportService
class ExampleAirport{
public function getAirPort(AirportService $airportService, Container $container){
$result = $container->call([$airportService, 'getAllAirportByCountry'], ['countryCode' => '[country_code]']);
}
}