<?php
$env = static function (string $key, string $default = ''): string {
    $value = getenv($key);
    return $value !== false ? $value : $default;
};

return [
    'app_name' => $env('APP_NAME', 'DB Field Reporting App'),
    'base_url' => rtrim($env('BASE_URL', ''), '/'),
    'db' => [
        'host' => $env('DB_HOST', 'localhost'),
        'port' => $env('DB_PORT', '3306'),
        'name' => $env('DB_NAME', 'primarysales_db_field_reporting'),
        'user' => $env('DB_USER', 'primarysales'),
        'pass' => $env('DB_PASS', 'S5L7lF01EQZvQrGK'),
        'charset' => $env('DB_CHARSET', 'utf8mb4'),
    ],
    'upload_dir' => __DIR__ . '/../uploads',
];
