PHP code example of sentrasoft / laravel-indonesia

1. Go to this page and download the library: Download sentrasoft/laravel-indonesia 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/ */

    

sentrasoft / laravel-indonesia example snippets


'providers' => array(
    ...

    Sentrasoft\Indonesia\IndonesiaServiceProvider::class,
);

'aliases' => array(
    ...

    'Indonesia' => Sentrasoft\Indonesia\Facades\Indonesia::class,
);

$provinces = \Indonesia::allProvinces();
 php
$ composer 
 php
$ php artisan vendor:publish --provider="Sentrasoft\Indonesia\IndonesiaServiceProvider"
 php
$ php artisan migrate
 php
$ php artisan indonesia:seed