-
Notifications
You must be signed in to change notification settings - Fork 1
/
Config.php
64 lines (62 loc) · 2.7 KB
/
Config.php
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
/**
* Holds database settings for all your database connections
*
* @return array
*/
return [
'db' => [
'defaultDriver' => env('DATABASE_DRIVER', 'mysql'),
'mysql' => [
'driver' => env('DATABASE_DRIVER', 'mysql'), // Db driver
'host' => env('DATABASE_HOST'),
'database' => env('DATABASE_NAME'),
'username' => env('DATABASE_USERNAME'),
'password' => env('DATABASE_PASSWORD'),
'charset' => env('DATABASE_CHARSET'), // Optional
'collation' => 'utf8_unicode_ci', // Optional
'prefix' => env('DATABASE_PREFIX'), // Table prefix, optional
'options' => [ // PDO constructor options, optional
PDO::ATTR_TIMEOUT => 5,
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_PERSISTENT => true,
],
],
'sqlite' => [
'driver' => env('DATABASE_DRIVER', 'sqlite'), // Db driver
'database' => env('DATABASE_FILE', 'yuga.sqlite'), // stored in the storage/database directory
'options' => [ // PDO constructor options, optional
PDO::ATTR_TIMEOUT => 5,
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_PERSISTENT => true,
],
],
'pgsql' => [
'driver' => env('DATABASE_DRIVER', 'pgsql'), // Db driver
'host' => env('DATABASE_HOST'),
'database' => env('DATABASE_NAME'),
'username' => env('DATABASE_USERNAME'),
'password' => env('DATABASE_PASSWORD'),
'charset' => env('DATABASE_CHARSET'), // Optional
'collation' => 'utf8_unicode_ci', // Optional
'prefix' => env('DATABASE_PREFIX'), // Table prefix, optional
'schema' => env('DATABASE_SCHEMA', 'public'),
'options' => [ // PDO constructor options, optional
PDO::ATTR_TIMEOUT => 5,
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_PERSISTENT => true,
],
],
'backup' => [
// The path where database dumps are stored.
'path' => path(env('DATABASE_BACKUP_DIR', 'app/Database/Backup')),
// The paths to the MySQL tools used by Yuga.
'mysql' => [
'dumpCommandPath' => env('MYSQL_DUMP_COMMAND_PATH', '/usr/bin/mysqldump'),
'restoreCommandPath' => env('MYSQL_RESTORE_COMMAND_PATH', '/usr/bin/mysql'),
],
// Whether or not the dump file is compressed.
'compress' => true,
],
]
];