<?php
/// file: config/database.php

declare(strict_types=1);

use App\Core\Env;

return [
    'connections' => [
        'mysql' => [
            'host' => Env::get('DB_HOST', '127.0.0.1'),
            'port' => (int) (Env::get('DB_PORT', '3306') ?? 3306),
            'database' => Env::get('DB_NAME', '') ?? '',
            'username' => Env::get('DB_USER', 'root') ?? 'root',
            'password' => Env::get('DB_PASS', '') ?? '',
            'charset' => 'utf8mb4',
        ],
    ],
];
