Skip to content

Commit ef77972

Browse files
committed
ENV variable
1 parent cdc2a4a commit ef77972

File tree

3 files changed

+47
-14
lines changed

3 files changed

+47
-14
lines changed

.env

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
APP_NAME=Pro_School
2+
APP_ENV=local
3+
APP_KEY=base64:IYqyu5mH1lQdHKrk4D6nMbKfnOXrW9lqdKYu+ZIf7Go=
4+
APP_DEBUG=true
5+
APP_LOG_LEVEL=debug
6+
APP_URL=http://localhost
7+
8+
DB_CONNECTION=mysql
9+
DB_HOST=127.0.0.1
10+
DB_PORT=3306
11+
DB_DATABASE=tcc
12+
DB_USERNAME=root
13+
DB_PASSWORD=root
14+
15+
BROADCAST_DRIVER=log
16+
CACHE_DRIVER=file
17+
SESSION_DRIVER=file
18+
SESSION_LIFETIME=120
19+
QUEUE_DRIVER=sync
20+
21+
REDIS_HOST=127.0.0.1
22+
REDIS_PASSWORD=null
23+
REDIS_PORT=6379
24+
25+
MAIL_DRIVER=smtp
26+
MAIL_HOST=smtp.mailtrap.io
27+
MAIL_PORT=2525
28+
MAIL_USERNAME=null
29+
MAIL_PASSWORD=null
30+
MAIL_ENCRYPTION=null
31+
32+
PUSHER_APP_ID=
33+
PUSHER_APP_KEY=
34+
PUSHER_APP_SECRET=

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
Homestead.json
99
Homestead.yaml
1010
npm-debug.log
11-
yarn-error.log
12-
.env
11+
yarn-error.log

config/database.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@
4040
],
4141

4242
'mysql' => [
43-
'driver' => 'mysql',
44-
'host' => 'us-cdbr-iron-east-05.cleardb.net',
45-
'port' => '3306',
46-
'database' => 'heroku_2315eff1f55caab',
47-
'username' => 'b6e218e3f15da7',
48-
'password' => 'd660c19c',
49-
'unix_socket' => '',
50-
'charset' => 'utf8mb4',
51-
'collation' => 'utf8mb4_unicode_ci',
52-
'prefix' => '',
53-
'strict' => false,
54-
'engine' => null,
43+
'driver' => 'mysql',
44+
'host' => env('DB_HOST', 'us-cdbr-iron-east-05.cleardb.net'),
45+
'port' => env('DB_PORT', '3306'),
46+
'database' => env('DB_DATABASE', 'heroku_2315eff1f55caab'),
47+
'username' => env('DB_USERNAME', 'b6e218e3f15da7'),
48+
'password' => env('DB_PASSWORD', 'd660c19c'),
49+
'unix_socket' => env('DB_SOCKET', ''),
50+
'charset' => 'utf8mb4',
51+
'collation' => 'utf8mb4_unicode_ci',
52+
'prefix' => '',
53+
'strict' => false,
54+
'engine' => null,
5555
],
5656

5757
'pgsql' => [

0 commit comments

Comments
 (0)