PHP code example of novay / laravel-samarinda

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

    

novay / laravel-samarinda example snippets


Samarinda::findKecamatan(11, ['kelurahan']);

/*
Will return
Kecamatan Object {
    'id' => 11,
    'nama' => 'SAMBUTAN',
    'kelurahan' => Kelurahan Collections {
        Kelurahan Object,
        Kelurahan Object,
        Kelurahan Object,
        ...
    }
}
*/

php artisan vendor:publish --provider="Novay\Samarinda\SamarindaServiceProvider"

php artisan migrate

php artisan novay:samarinda:seed