itpassionltd / laravel-geo-information
Tables, Seeders and Models for Geographical information
Requires
- php: ^7.0
- illuminate/console: ~5.4
- illuminate/database: ~5.4
- illuminate/filesystem: ~5.4
This package is auto-updated.
Last update: 2024-03-26 11:03:30 UTC
README
Installation
In order to install please follow the below steps:
composer require itpassionltd/laravel-geo-information
This will install the package in your vendor directory.
If you have laravel >= 5.5 you can skip ahead to step 3.
Add
ITPassionLtd\Laravel\GeoInfo\GeoInfoServiceProvider::class
to the providers array inconfig/app.php
This will give the package an opportunity to register itself with Laravel
Run
php artisan migrate
to install the database tablesRun
php artisan db:seed --class=ITPassionLtd\\Laravel\\GeoInfo\\Seeds\\GeoInfoTablesSeeders
to seed the created tables
That's it: The installation is finished now
Usage
Simply use ITPassionLtd\\Laravel\\GeoInfo\\App\\Country
to use the Country Model in your code.
TODO
Seeding:
- Finsih the GeoInfoCountriesTableSeeder
- Create the GeoInfoTablesSeeder
Create the following APIs:
- GET countries
- GET countries/{country}
Create tables and seeders for
- Regions
- Languages
- Currency Symbols