Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Airlines Laravel Package

ijeffro/laravel-airlines

View on GitHub
Deep Wiki
Context7

Laravel Airlines

Latest Stable Version Total Downloads Latest Unstable Version License

Laravel Airlines is a bundle for Laravel, providing Iata Code ISO 3166_3 and country codes for all the airlines.

Please note that the dev-master version is for Laravel 5

Installation

Run composer require ijeffro/laravel-airlines dev-master in your Laravel root directory to install the latest version.

Or add ijeffro/laravel-airlines to composer.json.

"ijeffro/laravel-airlines": "dev-master"

Run composer update to pull down the latest version of Airline List.

Edit app/config/app.php and add the provider and filter

'providers' => [
    ijeffro\Airlines\AirlinesServiceProvider::class,
]

Now add the alias.

'aliases' => [
    'Airlines' => ijeffro\Airlines\AirlinesFacade::class,
]

Model

You can start by publishing the configuration. This is an optional step, it contains the table name and does not need to be altered. If the default name airlines suits you, leave it. Otherwise run the following command

$ php artisan vendor:publish

Next generate the migration file:

$ php artisan airlines:migration
$ composer dump-autoload

It will generate the <timestamp>_setup_airlines_table.php migration and the AirlinesSeeder.php seeder. To make sure the data is seeded insert the following code in the seeds/DatabaseSeeder.php

//Seed the airlines
$this->call('AirlinesSeeder');
$this->command->info('Seeded the airlines!');

You may now run it with the artisan migrate command:

$ php artisan migrate --seed

After running this command the filled airlines table will be available

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle