Iran Provinces, Counties and Cities with a Google Map Location for Laravel.
adlino/locations is a Laravel package for iran provinces, counties and cities with a google map location for laravel..
It currently has 17 GitHub stars and 1.342 downloads on Packagist (latest version 0.0.1).
Install it with composer require adlino/locations.
Discover more Laravel packages by adlino
or browse all Laravel packages to compare alternatives.
Last updated
Iran Provinces, Counties and Cities with a Google Map Location for Laravel.
composer require adlino/locations
php artisan vendor:publish --force --provider="Adlino\Locations\LocationsServiceProvider"
composer dump-autoload
php artisan locations:init
// get all provinces
$provinces = Locations::getAllProvinces(); // return approved provinces
// get all counties
$counties = Locations::getAllCounties(); // return approved counties
// get all cities
$cities = Locations::getAllCities(); // return approved cities
// get cities of province
$cities = $province->getCities();
// get counties of province
$counties = $province->getCounties();
// get area code of tehran province
$areaCode = $province->getAreaCode(); // 021