-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.php
More file actions
64 lines (60 loc) · 1.87 KB
/
database.php
File metadata and controls
64 lines (60 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* This file is part of Blitz PHP framework - Database Layer.
*
* (c) 2022 Dimitri Sitchet Tomkeu <devcode.dst@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
return [
/**
* Configuration à utiliser
*
* Si defini a 'auto', la configuration 'production' sera utilisée en production et 'development' en developpement
* Si les configuration 'production' et 'development' ne sont pas définies, 'default' sera utilisée
*
* @var string
*/
'connection' => env('db.connection', 'auto'),
/**
* Configuration pas défaut
*
* @var array<string, mixed>
*/
'default' => [
/**
* @var string Pilote de base de données à utiliser
*/
'driver' => env('db.default.driver', 'mysql'),
/** @var int */
'port' => env('db.default.port', 3306),
/** @var string */
'hostname' => env('db.default.hostname', 'localhost'),
/** @var string */
'username' => env('db.default.username', 'root'),
/** @var string */
'password' => env('db.default.password', ''),
/** @var string */
'database' => env('db.default.database', 'test'),
/**
* @var 'auto'|bool
*
* Si défini sur 'auto', alors vaudra true en developpement et false en production
*/
'debug' => 'auto',
/** @var string */
'charset' => 'utf8mb4',
/** @var string */
'collation' => 'utf8mb4_general_ci',
/**
* @var string Prefixe des table de la base de données
*/
'prefix' => env('db.default.prefix', ''),
'options' => [
'column_case' => 'inherit',
'enable_stats' => false,
'enable_cache' => true,
],
],
];