lartie / airports
Airports for Laravel
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/lartie/airports
Requires
- php: >=5.5.9
- laravel/framework: 5.2.*
This package is not auto-updated.
Last update: 2025-09-28 00:56:08 UTC
README
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