-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.php
More file actions
33 lines (28 loc) · 907 Bytes
/
env.php
File metadata and controls
33 lines (28 loc) · 907 Bytes
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
<?php
/*
* Setup enviroment for your application
*/
$variables = [
'APP_URL' => 'http://localhost', //root url
'APP_NAME' => 'php_mvc', //directory of site
'APP_ENV' => 'development', //development or testing or production
'APP_DEBUG' => 'true', //default is true
'APP_KEY' => 'jjjjjjjddddddddddddddsgdhdjf',
'DB_CONNECTION' => 'mysql',
'DB_HOST' => '127.0.0.1',
'DB_PORT' => '3306',
'DB_DATABASE' => 'php_mvc',
'DB_USERNAME' => 'root',
'DB_PASSWORD' => '',
'MAIL_DRIVER' => 'smtp',
'MAIL_HOST' => 'smtp.mailtrap.io',
'MAIL_PORT' => '2525',
'MAIL_USERNAME' => 'null',
'MAIL_PASSWORD' => 'null',
'MAIL_ENCRYPTION' => 'null',
'CONTROLLER_DEFAULT' => 'home',
'ACTION_DEFAULT' => 'index'
];
foreach ($variables as $key => $value) {
putenv("$key=$value");
}