ijeffro/laravel-airlines 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ijeffro/laravel-airlines

Composer 安装命令:

composer require ijeffro/laravel-airlines

包简介

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

README 文档

README

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

统计信息

  • 总下载量: 8.29k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固