Browse code

initial-commit

rcraig12 authored on 11/11/2018 19:37:45
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,131 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Database Connection Name
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Here you may specify which of the database connections below you wish
11
+    | to use as your default connection for all database work. Of course
12
+    | you may use many connections at once using the Database library.
13
+    |
14
+    */
15
+
16
+    'default' => env('DB_CONNECTION', 'mysql'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Database Connections
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Here are each of the database connections setup for your application.
24
+    | Of course, examples of configuring each database platform that is
25
+    | supported by Laravel is shown below to make development simple.
26
+    |
27
+    |
28
+    | All database work in Laravel is done through the PHP PDO facilities
29
+    | so make sure you have the driver for your particular database of
30
+    | choice installed on your machine before you begin development.
31
+    |
32
+    */
33
+
34
+    'connections' => [
35
+
36
+        'sqlite' => [
37
+            'driver' => 'sqlite',
38
+            'database' => env('DB_DATABASE', database_path('database.sqlite')),
39
+            'prefix' => '',
40
+            'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
41
+        ],
42
+
43
+        'mysql' => [
44
+            'driver' => 'mysql',
45
+            'host' => env('DB_HOST', '127.0.0.1'),
46
+            'port' => env('DB_PORT', '3306'),
47
+            'database' => env('DB_DATABASE', 'forge'),
48
+            'username' => env('DB_USERNAME', 'forge'),
49
+            'password' => env('DB_PASSWORD', ''),
50
+            'unix_socket' => env('DB_SOCKET', ''),
51
+            'charset' => 'utf8mb4',
52
+            'collation' => 'utf8mb4_unicode_ci',
53
+            'prefix' => '',
54
+            'prefix_indexes' => true,
55
+            'strict' => true,
56
+            'engine' => null,
57
+        ],
58
+
59
+        'pgsql' => [
60
+            'driver' => 'pgsql',
61
+            'host' => env('DB_HOST', '127.0.0.1'),
62
+            'port' => env('DB_PORT', '5432'),
63
+            'database' => env('DB_DATABASE', 'forge'),
64
+            'username' => env('DB_USERNAME', 'forge'),
65
+            'password' => env('DB_PASSWORD', ''),
66
+            'charset' => 'utf8',
67
+            'prefix' => '',
68
+            'prefix_indexes' => true,
69
+            'schema' => 'public',
70
+            'sslmode' => 'prefer',
71
+        ],
72
+
73
+        'sqlsrv' => [
74
+            'driver' => 'sqlsrv',
75
+            'host' => env('DB_HOST', 'localhost'),
76
+            'port' => env('DB_PORT', '1433'),
77
+            'database' => env('DB_DATABASE', 'forge'),
78
+            'username' => env('DB_USERNAME', 'forge'),
79
+            'password' => env('DB_PASSWORD', ''),
80
+            'charset' => 'utf8',
81
+            'prefix' => '',
82
+            'prefix_indexes' => true,
83
+        ],
84
+
85
+    ],
86
+
87
+    /*
88
+    |--------------------------------------------------------------------------
89
+    | Migration Repository Table
90
+    |--------------------------------------------------------------------------
91
+    |
92
+    | This table keeps track of all the migrations that have already run for
93
+    | your application. Using this information, we can determine which of
94
+    | the migrations on disk haven't actually been run in the database.
95
+    |
96
+    */
97
+
98
+    'migrations' => 'migrations',
99
+
100
+    /*
101
+    |--------------------------------------------------------------------------
102
+    | Redis Databases
103
+    |--------------------------------------------------------------------------
104
+    |
105
+    | Redis is an open source, fast, and advanced key-value store that also
106
+    | provides a richer body of commands than a typical key-value system
107
+    | such as APC or Memcached. Laravel makes it easy to dig right in.
108
+    |
109
+    */
110
+
111
+    'redis' => [
112
+
113
+        'client' => 'predis',
114
+
115
+        'default' => [
116
+            'host' => env('REDIS_HOST', '127.0.0.1'),
117
+            'password' => env('REDIS_PASSWORD', null),
118
+            'port' => env('REDIS_PORT', 6379),
119
+            'database' => env('REDIS_DB', 0),
120
+        ],
121
+
122
+        'cache' => [
123
+            'host' => env('REDIS_HOST', '127.0.0.1'),
124
+            'password' => env('REDIS_PASSWORD', null),
125
+            'port' => env('REDIS_PORT', 6379),
126
+            'database' => env('REDIS_CACHE_DB', 1),
127
+        ],
128
+
129
+    ],
130
+
131
+];