luismarcelino/freguesias
Composer 安装命令:
composer require luismarcelino/freguesias
包简介
Freguesias is a bundle for Laravel with all Portuguese administrative regions.
README 文档
README
Freguesias is a Laravel 5 package that provides all administrative regions in Portugal: distritos, concelhos and freguesias.
Instalation
Add luismarcelino/freguesias to composer.json.
"luismarcelino/freguesias": "dev-master"
Run composer update to pull down the latest version of Freguesias List.
Edit config/app.php and add the provider and filter
'providers' => [
Luismarcelino\Freguesias\FreguesiasServiceProvider::class,,
]
Now add the alias.
'aliases' => [
'Freguesias' => Luismarcelino\Freguesias\FreguesiasFacade::class,
]
Publishing
Optionaly you can publishing the configuration if you want to change the default table name freguesias:
$ php artisan vendor:publish
To generate the migration file use:
$ php artisan freguesias:migration
This will generate the <timestamp>_setup_freguesias_table.php migration and the FreguesiasSeeder.php seeder. To run the migration, run as usual:
php artisan migrate:refresh
To run just this seeder user the artisan command:
php artisan db:seed --class=FreguesiasSeeder
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-18