asorasoft/location

Seed data for Cambodia location

1.0.5 2021-07-07 09:23 UTC

This package is auto-updated.

Last update: 2024-05-07 16:32:09 UTC


README

socialcard

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 mabhelitc@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.