vioms/laravel-countries
最新稳定版本:v1.0.4
Composer 安装命令:
composer require vioms/laravel-countries
包简介
Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.
README 文档
README
Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.
This package can be used standalone or can be combined with:
- vioms/laravel-cities
Inspired by Webpatser:
Installation
Runs composer require vioms/laravel-countries to install the package
Run composer update to pull down the latest version of Country List.
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 countries suits you, leave it. Otherwise run the following command
$ php artisan vendor:publish
You may now run it with the artisan migrate command:
$ php artisan migrate
$ php artisan db:seed --class=CountriesSeeder
After running this command the filled countries table will be available
统计信息
- 总下载量: 48
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-09