Installation
In order to install please follow the below steps:
1. composer require itpassionltd/laravel-geo-information, (*1)
This will install the package in your vendor directory., (*2)
If you have laravel >= 5.5 you can skip ahead to step 3., (*3)
-
Add ITPassionLtd\Laravel\GeoInfo\GeoInfoServiceProvider::class to the providers array in config/app.php, (*4)
This will give the package an opportunity to register itself with Laravel, (*5)
-
Run php artisan migrate to install the database tables, (*6)
-
Run php artisan db:seed --class=ITPassionLtd\\Laravel\\GeoInfo\\Seeds\\GeoInfoTablesSeeders to seed the created tables, (*7)
That's it: The installation is finished now, (*8)
Usage
Simply use ITPassionLtd\\Laravel\\GeoInfo\\App\\Country to use the Country Model in your code., (*9)
TODO
Seeding:
* Finsih the GeoInfoCountriesTableSeeder
* Create the GeoInfoTablesSeeder, (*10)
Create the following APIs:
* GET countries
* GET countries/{country}, (*11)
Create tables and seeders for
* Regions
* Languages
* Currency Symbols, (*12)