PHP code example of triptasoft / filament-indonesia-regions

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

    

triptasoft / filament-indonesia-regions example snippets


return [
];

use Triptasoft\FilamentIndonesiaRegions\Forms\Components\RegionSelect;

RegionSelect::make()->label('Wilayah Indonesia'),

use Triptasoft\FilamentIndonesiaRegions\Tables\Columns\RegionColumn;

RegionColumn::make('provinsi')->type('provinsi'),
RegionColumn::make('kabupaten')->type('kabupaten'),
RegionColumn::make('kecamatan')->type('kecamatan'),
RegionColumn::make('desa')->type('desa'),

use Triptasoft\FilamentIndonesiaRegions\Infolists\Entries\RegionEntry;

RegionEntry::make('provinsi')->type('provinsi'),
RegionEntry::make('kabupaten')->type('kabupaten'),
RegionEntry::make('kecamatan')->type('kecamatan'),
RegionEntry::make('desa')->type('desa'),
bash
php artisan vendor:publish --tag="filament-indonesia-regions-config"