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
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
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-04