PHP code example of uocnv / vietnam-zone

1. Go to this page and download the library: Download uocnv/vietnam-zone library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

uocnv / vietnam-zone example snippets


'tables' => [
    'provinces' => 'provinces',
    'districts' => 'districts',
    'wards'     => 'wards',
],

'columns' => [
    'name'        => 'name',
    'gso_id'      => 'gso_id',
    'province_id' => 'province_id',
    'district_id' => 'district_id',
],
shell
php artisan vendor:publish --provider="Kjmtrue\VietnamZone\ServiceProvider"
shell
database/migrations/2020_01_01_000001_create_provinces_table.php
database/migrations/2020_01_01_000002_create_districts_table.php
database/migrations/2020_01_01_000003_create_wards_table.php
shell
php artisan migrate
shell
php artisan vietnamzone:download