|
13 | 13 | | to use as your default connection for all database work. Of course |
14 | 14 | | you may use many connections at once using the Database library. |
15 | 15 | | |
16 | | - */ |
| 16 | + */ |
17 | 17 |
|
18 | 18 | 'default' => env('DB_CONNECTION', 'mysql'), |
19 | 19 |
|
|
31 | 31 | | so make sure you have the driver for your particular database of |
32 | 32 | | choice installed on your machine before you begin development. |
33 | 33 | | |
34 | | - */ |
| 34 | + */ |
35 | 35 |
|
36 | 36 | 'connections' => [ |
37 | 37 |
|
|
46 | 46 | 'mysql' => [ |
47 | 47 | 'driver' => 'mysql', |
48 | 48 | 'url' => env('DATABASE_URL'), |
49 | | - 'host' => env('DB_HOST', '127.0.0.1'), |
50 | | - 'port' => env('DB_PORT', '3306'), |
51 | | - 'database' => env('DB_DATABASE', 'forge'), |
52 | | - 'username' => env('DB_USERNAME', 'forge'), |
53 | | - 'password' => env('DB_PASSWORD', ''), |
| 49 | + 'host' => env('DB_HOST', 'mysql'), |
| 50 | + 'port' => env('DB_PORT', '3307'), |
| 51 | + 'database' => env('DB_DATABASE', 'application_database'), |
| 52 | + 'username' => env('DB_USERNAME', 'root'), |
| 53 | + 'password' => env('DB_PASSWORD', 'Expense.tracker.password_2024!'), |
54 | 54 | 'unix_socket' => env('DB_SOCKET', ''), |
55 | 55 | 'charset' => 'utf8mb4', |
56 | 56 | 'collation' => 'utf8mb4_unicode_ci', |
|
104 | 104 | | your application. Using this information, we can determine which of |
105 | 105 | | the migrations on disk haven't actually been run in the database. |
106 | 106 | | |
107 | | - */ |
| 107 | + */ |
108 | 108 |
|
109 | 109 | 'migrations' => 'migrations', |
110 | 110 |
|
|
117 | 117 | | provides a richer body of commands than a typical key-value system |
118 | 118 | | such as APC or Memcached. Laravel makes it easy to dig right in. |
119 | 119 | | |
120 | | - */ |
| 120 | + */ |
121 | 121 |
|
122 | 122 | 'redis' => [ |
123 | 123 |
|
124 | 124 | 'client' => env('REDIS_CLIENT', 'phpredis'), |
125 | 125 |
|
126 | 126 | 'options' => [ |
127 | 127 | 'cluster' => env('REDIS_CLUSTER', 'redis'), |
128 | | - 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), |
| 128 | + 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_database_'), |
129 | 129 | ], |
130 | 130 |
|
131 | 131 | 'default' => [ |
|
0 commit comments