mahbodhastam/laravel-iran-cities
最新稳定版本:1.0.3
Composer 安装命令:
composer require mahbodhastam/laravel-iran-cities
包简介
Iran provinces and cities for Laravel.
README 文档
README
I spent the day searching for an existing package providing a list of cities in Iran, but I couldn't find one. As a result, I created this package. The helper functions and core logic are based on the work of SanjabTeam, but their original repository appears to be archived.
Installation
You can install the package via composer:
composer require mahbodhastam/laravel-iran-cities
And then publish the config file (optional):
php artisan vendor:publish --provider=MahbodHastam\\LaravelIranCities\\LaravelIranCitiesServiceProvider
Don't forget to run the seeder:
- Add this line into the
runmethod of theDatabaseSeeder.phpfile:
$this->call(\MahbodHastam\LaravelIranCities\Database\Seeds\ProvincesAndCitiesSeeder::class);
- Then run.
php artisan migrate --seed
It'll create two tables:
citiesandprovinces. You can change their names in the config file before migrating.
Usage
Use it like the other Laravel models.
Contributing
All contributions are welcome.
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-30