Files
api_arrahn/app/Http/Controllers
Afiq Hamzah 8fe42c1d9f Refactor tenant database configuration to use dynamic config values
- Replace hardcoded database names (online_arrahn, master_krk, kaunterpkb)
  with configurable values across the codebase
- Rename tennant_master.php to tennant_database.php for clearer naming
- Update config keys: 'database' → 'master_db', add 'kaunter_db'
- Update env variables: TENNANT_MASTER_DB and TENNANT_KAUNTER_DB
- Modify Helper.php to use dynamic database references in
  getOnlineArrahnConnection(), getActiveCawanganDbConnection(),
  and getInactiveCawanganDbConnection() methods
- Update database JOIN queries in CustomerController and MarhunController
  to use config values instead of hardcoded database names
- Simplify migration logic by removing redundant hardcoded database checks
- Update debug messages in CawanganDebugConnections to show actual
  configured database name
- Update bootstrap/app.php to load tennant_database config

This change improves multi-environment flexibility and eliminates
environment-specific hardcoded values, making the application more
configurable for different deployment scenarios (KRK, KGMK, etc).
2026-01-20 11:36:41 +08:00
..
2026-01-18 08:44:37 +08:00
2025-04-07 15:05:43 +08:00
2020-11-03 10:50:13 +08:00
2020-12-13 14:20:59 +08:00
2020-10-19 10:28:31 +08:00
2020-10-19 10:28:31 +08:00
2025-10-05 16:11:05 +08:00
2021-03-11 09:04:31 +08:00
2021-03-17 16:39:39 +08:00
2021-10-03 03:19:52 +08:00
2021-10-18 11:02:27 +08:00
2021-10-03 03:19:52 +08:00
2022-01-16 10:17:36 +08:00
2025-01-14 22:54:48 +08:00
2020-11-08 15:59:21 +08:00
2021-05-19 16:35:33 +08:00
otp
2021-02-01 08:38:39 +08:00
2025-01-19 11:47:25 +08:00
2024-12-01 15:30:48 +08:00
2025-04-07 23:38:19 +08:00
2021-06-03 07:47:46 +08:00
2024-06-11 08:41:12 +08:00
2021-12-01 08:15:07 +08:00
2021-01-04 08:48:55 +08:00
2021-10-03 03:19:52 +08:00
2026-01-15 13:07:11 +08:00