KHRegion for Laravel
Importing the province, district, commune and village data into your Laravel Development.
Installation
Require the asorasoft/location
package in your composer.json and update your dependencies.
composer require asorasoft/location
Register service provider in config/app.php
file.
<?php
return [
'providers' => [
// ...
Asorasoft\Location\LocationServiceProvider::class,
]
];
Publishing the migration and models files.
php artisan vendor:publish --provider="Asorasoft\Location\LocationServiceProvider"
php artisan migrate
Go to app/Console/Commands/RegionCommand.php
file and update $api
attribute to secret api to get the Khmer region.
Usage
php artisan asorasoft:region
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.