PHP code example of shibuyakosuke / laravel-addresscode-japan
1. Go to this page and download the library: Download shibuyakosuke/laravel-addresscode-japan 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/ */
shibuyakosuke / laravel-addresscode-japan example snippets
return [
/*
* データを投入するテーブル名
*/
'table_name' => 'geolonia_address_code_japan',
/*
* データのダウンロードURL設定
*/
'data_url' => 'https://raw.githubusercontent.com/geolonia/japanese-addresses/master/data/latest.csv',
];
bash
php artisan migrate
bash
php artisan address:normalize
bash
php artisan vendor:publish --tag=address_code_japan