lartie/airports
Airports for Laravel 5
Install
composer require lartie/airports
'providers' => [
...
LArtie\Airports\AirportsServiceProvider::class,
]
php artisan vendor:publish
php artisan migrate
php artisan airports:install
Usage
$country = Country::where('name_en', 'Russia')->first();
$city = $country->cities()->first();
$city->name_en;
$city->name_ru;
$country = $city->country()->first();
$country->name_en;
$country->name_ru;
$country->iso_code;
$airport = $city->airports()->first();
$airport->gmt_offset;
$airport->iata_code;
$airport->icao_code;
$city = $airport->city()->first();
License
MIT
Related Packages
ijeffro/laravel-airports
Laravel Airports is a bundle for Laravel, providing Iata Code ISO 3166 3 and cou...
3,638
4
ijeffro/laravel-airlines
IATA airline codes for Laravel: an in-memory lookup API, validation rule and opt...
8,456
3
ijeffro/laravel-cities
IATA city codes for Laravel: an in-memory lookup API, validation rule and option...
8,284
11
ijeffro/laravel-aircrafts
IATA aircraft type codes for Laravel: an in-memory lookup API, validation rule a...
98
2
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.2 | >=5.5.9 | 5.2.* | MIT | |
| v1.1 | >=5.5.9 | 5.2.* | MIT | |
| v1.0 | >=5.5.9 | 5.2.* | MIT License |