定制 ezitisitis/laravel-countries 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ezitisitis/laravel-countries

最新稳定版本:1.3.0

Composer 安装命令:

composer require ezitisitis/laravel-countries

包简介

Bundle for Laravel, which provides ISO 3166_2, 3166_3, currency, Capital, and more data for all countries

README 文档

README

Packagist Version GitHub License

Bundle for Laravel, which provides ISO 3166_2, 3166_3, currency, Capital, and more data for all countries

Notice: this version is for Laravel 8 and above

Installation

Add ezitisitis/laravel-countries to your composer.json by running:

composer require ezitisitis/laravel-countries

Run installation command:

php artisan countries:install

NB Installation command supports --force flag/option to force publishing

Run migration command:

php artisan migrate

Model and data

To change model table go to config/countries.php and change table_name value.

NB You will need to make sure that old table is removed.

Now you can seed database by executing:

php artisan db:seed --class=CountriesSeeder

Or by adding seeder to your DatabaseSeeder:

$this->call(CountriesSeeder::class);

and executing:

php artisan db:seed

Credits

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-04