2017 © Pedro Peláez
 

laravel-library laravel-aircrafts

Laravel Aircrafts is a bundle for Laravel, providing Iata Code ISO 3166 3 and country codes for all the aircrafts.

image

ijeffro/laravel-aircrafts

Laravel Aircrafts is a bundle for Laravel, providing Iata Code ISO 3166 3 and country codes for all the aircrafts.

  • Wednesday, October 18, 2017
  • by ijeffro
  • Repository
  • 1 Watchers
  • 1 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Aircrafts

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Laravel Aircrafts is a bundle for Laravel, providing Iata Code ISO 3166_3 and country codes for all the aircrafts., (*2)

Please note that the dev-master version is for Laravel 5 only, (*3)

Installation

Run composer require ijeffro/laravel-aircrafts dev-master in your Laravel root directory to install the latest version., (*4)

Or add ijeffro/laravel-aircrafts to composer.json., (*5)

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

Run composer update to pull down the latest version of Aircraft List., (*6)

Edit app/config/app.php and add the provider and filter, (*7)

'providers' => [
    ijeffro\Aircrafts\AircraftsServiceProvider::class,
]

Now add the alias., (*8)

'aliases' => [
    'Aircrafts' => ijeffro\Aircrafts\AircraftsFacade::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 aircrafts suits you, leave it. Otherwise run the following command, (*9)

$ php artisan vendor:publish

Next generate the migration file:, (*10)

$ php artisan aircrafts:migration
$ composer dump-autoload

It will generate the <timestamp>_setup_aircrafts_table.php migration and the AircraftsSeeder.php seeder. To make sure the data is seeded insert the following code in the seeds/DatabaseSeeder.php, (*11)

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

You may now run it with the artisan migrate command:, (*12)

$ php artisan migrate --seed

After running this command the filled aircrafts table will be available, (*13)

The Versions

18/10 2017

dev-master

9999999-dev https://github.com/ijeffro/laravel-aircrafts

Laravel Aircrafts is a bundle for Laravel, providing Iata Code ISO 3166 3 and country codes for all the aircrafts.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar ijeffro

laravel iso_3166_3 country_code aircrafts