banki.test/config/db.php

18 lines
415 B
PHP
Raw Permalink Normal View History

<?php
$db_host = env('DB_HOST');
$db_name = env('DB_NAME');
return [
'class' => 'yii\db\Connection',
'dsn' => "mysql:host=$db_host;dbname=$db_name",
'username' => env('DB_USER'),
'password' => env('DB_PASS'),
'charset' => 'utf8',
// Schema cache options (for production environment)
//'enableSchemaCache' => true,
//'schemaCacheDuration' => 60,
//'schemaCache' => 'cache',
];