Importing the province, district, commune and village data into your Laravel Development.
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.
php artisan asorasoft:region
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email mabhelitc@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.