We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 714f6a5 commit ef855c1Copy full SHA for ef855c1
bootstrap/environment.php
@@ -11,17 +11,14 @@
11
|
12
*/
13
14
-try
+if (file_exists(__DIR__.'/.env'))
15
{
16
Dotenv::load(__DIR__.'/../');
17
18
- Dotenv::required('APP_ENV');
19
-}
20
-catch (RuntimeException $e)
21
-{
22
- die('Application environment not configured.'.PHP_EOL);
+ //Dotenv::required('APP_ENV');
23
}
24
+
25
/*
26
|--------------------------------------------------------------------------
27
| Detect The Application Environment
@@ -35,5 +32,5 @@
35
32
36
33
$env = $app->detectEnvironment(function()
37
34
38
- return getenv('APP_ENV');
+ return getenv('APP_ENV') ?: 'production';
39
});
0 commit comments