luilliarcec/laravel-ecuador-locations
Composer 安装命令:
composer require luilliarcec/laravel-ecuador-locations
包简介
Set of provinces, cantons and parishes or cities of Ecuador.
README 文档
README
Installation
You can install the package via composer:
composer require luilliarcec/laravel-ecuador-locations
Now publish the migration file into your app's migrations directory, by running the following command:
php artisan vendor:publish --provider="Luilliarcec\EcuadorLocations\EcuadorLocationsServiceProvider"
php artisan migrate
Usage
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Luilliarcec\EcuadorLocations\Seeders\CantonSeeder; use Luilliarcec\EcuadorLocations\Seeders\ProvinciaSeeder; use Luilliarcec\EcuadorLocations\Models\Canton; use Luilliarcec\EcuadorLocations\Models\Provincia; class DatabaseSeeder extends Seeder { public function run() { if (Provincia::doesntExist()) { $this->call(ProvinciaSeeder::class); } if (Canton::doesntExist()) { $this->call(CantonSeeder::class); } // ... } }
php artisan db:seed
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email luilliarcec@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 179
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-13