Skip to content

Commit 7e5da71

Browse files
committed
fix: link env to app config
1 parent 5e86ed0 commit 7e5da71

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

config/app.php

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
<?php
22

3+
/*
4+
|--------------------------------------------------------------------------
5+
| App Config
6+
|--------------------------------------------------------------------------
7+
|
8+
| This file contains the configuration for your app. Most of this
9+
| configuration is for Leaf's core but has been made available
10+
| to you for your convenience.
11+
|
12+
| You can link your environment variables to this file by using the
13+
| _env() helper function. This function will return the value set in
14+
| your .env file. You can use the below settings as a reference.
15+
|
16+
*/
17+
318
return [
419
/*
520
|--------------------------------------------------------------------------
@@ -10,11 +25,10 @@
1025
| your app in a maintainance like state. It will display Leaf's default
1126
| app down page if a custom handler is not set.
1227
|
13-
| See:
14-
| https://leafphp.netlify.app/#/leaf/v/2.5.0/config/settings?id=appdown-new
28+
| See: https://leafphp.dev/docs/config/settings.html#app-down
1529
|
1630
*/
17-
'app.down' => false,
31+
'app.down' => _env('APP_DOWN', false),
1832

1933
/*
2034
|--------------------------------------------------------------------------
@@ -29,7 +43,7 @@
2943
| You might want to turn this off in production.
3044
|
3145
*/
32-
'debug' => true,
46+
'debug' => _env('APP_DEBUG', true),
3347

3448
/*
3549
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)