Download the PHP package mahbodhastam/laravel-iran-cities without Composer
On this page you can find all versions of the php package mahbodhastam/laravel-iran-cities. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mahbodhastam/laravel-iran-cities
More information about mahbodhastam/laravel-iran-cities
Files in mahbodhastam/laravel-iran-cities
Package laravel-iran-cities
Short Description Iran provinces and cities for Laravel.
License MIT
Homepage https://github.com/mahbodhastam/laravel-iran-cities
Informations about the package laravel-iran-cities
Iran Cities for Laravel
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:
And then publish the config file (optional):
Don't forget to run the seeder:
-
Add this line into the
run
method of theDatabaseSeeder.php
file: - Then run.
It'll create two tables:
cities
andprovinces
. 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
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-iran-cities with dependencies
cviebrock/eloquent-sluggable Version ^12.0
illuminate/support Version ^12.0