Add additional feature for registering customers with mykad reader

This commit is contained in:
afiq.hamzah
2022-08-10 12:41:43 +08:00
parent 2a08cac24d
commit 7a32a7e551
3 changed files with 113 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
<?php
$default_port = '8085';
$getScannerEndpoint = fn($x) => 'http://localhost:' . $x . '/?MYKADJSON';
return[
'endpoint' => env('MYKAD_SCANNER_endpoint', $getScannerEndpoint(env('MYKAD_SCANNER_PORT', $default_port))),
];