Change config to match db
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
// config/database.php
|
||||
// ============================================
|
||||
|
||||
define('DB_HOST', 'localhost');
|
||||
define('DB_USER', 'root');
|
||||
define('DB_PASS', '');
|
||||
define('DB_NAME', 'db_jalan');
|
||||
define('DB_HOST', getenv('DB_HOST') ?: 'localhost');
|
||||
define('DB_USER', getenv('DB_USER') ?: 'root');
|
||||
define('DB_PASS', getenv('DB_PASS') !== false ? getenv('DB_PASS') : '');
|
||||
define('DB_NAME', getenv('DB_NAME') ?: 'db_jalan');
|
||||
|
||||
// Path untuk upload foto laporan (relatif dari root project)
|
||||
define('UPLOAD_DIR', __DIR__ . '/../uploads/laporan/');
|
||||
|
||||
Reference in New Issue
Block a user