Files
kaunter/config/mykad-reader.php
T
ismailmasseran a2d85c3354
Build Docker Image / build-frontend (push) Successful in 47s
Explore/ismail (#11)
Co-authored-by: ISMAIL MASSERAN <topaz@Mac.dlinkrouter.local>
Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local>
Reviewed-on: #11
2026-09-01 14:13:09 +08:00

10 lines
350 B
PHP

<?php
$default_port = '17321';
$getReaderEndpoint = fn($x) => 'http://localhost:' . $x . '/read';
return[
'endpoint' => env('MYKAD_READER_ENDPOINT', $getReaderEndpoint(env('MYKAD_READER_PORT', $default_port))),
'enabled_cawangan' => array_map(fn ($cawangan) => trim($cawangan), explode(',', env('MYKAD_READER_ENABLED_CAWANGAN'))) ?? [],
];