adlino/iran-geo

Iran Provinces and Cities helper for Laravel.

dev-master 2018-05-22 08:46 UTC

README

Iran Provinces and Cities helper for Laravel.

Installation

Composer

Execute the following command to get the latest version of the package:

composer require adlino/iran-geo

Laravel

In your config/app.php add Adlino\IranGeo\IranGeoServiceProvider::class to the end of the providers array:

'providers' => [
    ...
    Adlino\IranGeo\IranGeoServiceProvider::class,
],

'alias' => [
    ...
    'irGeo' => Adlino\IranGeo\Facades\irGeoFacade::class
]

Publish Configuration

php artisan vendor:publish --tag=irGeo

Migrate the new tables

php artisan migrate

Seeder Tables

php artisan db:seed --class="Adlino\IranGeo\Database\Seeds\ProvincesTableSeeder" 
php artisan db:seed --class="Adlino\IranGeo\Database\Seeds\CitiesTableSeeder"