Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit ef60a13

Browse files
committed
added default error configuration in index.php
1 parent c74368b commit ef60a13

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

index.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
| Register The Leaf Auto Loader
1818
|--------------------------------------------------------------------------
1919
|
20-
| Require all Leaf's Files
20+
| Require all Leaf API's Files
2121
|
2222
*/
2323
require __DIR__. "/Config/bootstrap.php";
@@ -38,12 +38,21 @@
3838
|--------------------------------------------------------------------------
3939
|
4040
| This just prevents the connection client from throwing
41-
| CORS errors at you. You can delete or make them more specific.
41+
| CORS errors at you.
4242
|
4343
*/
4444
$app->response->cors();
4545

46-
Config\App::error_debug(false);
46+
/*
47+
|--------------------------------------------------------------------------
48+
| Error Configuration
49+
|--------------------------------------------------------------------------
50+
|
51+
| Show or hide errors for easy debugging
52+
| You might want to set this to false for production
53+
|
54+
*/
55+
Config\App::error_debug(true);
4756

4857
/*
4958
|--------------------------------------------------------------------------
@@ -62,7 +71,7 @@
6271
| Route Config
6372
|--------------------------------------------------------------------------
6473
|
65-
| Require app routes
74+
| Require app routes.
6675
|
6776
*/
6877
require __DIR__. "/App/Routes.php";

0 commit comments

Comments
 (0)