File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1- APP_NAME = " API-Monster"
1+ APP_NAME = " API-Monster"
2+ APP_DEBUG = true
Original file line number Diff line number Diff line change 2929 "homepage" : " https://t.me/h3dev" ,
3030 "role" : " Developer"
3131 }
32- ]
33- }
32+ ],
33+ "require" : {
34+ "filp/whoops" : " ^2.15"
35+ }
36+ }
Original file line number Diff line number Diff line change 11<?php
2+ use Monster \App \Models \Env ;
23use Monster \App \Route ;
34
45/*
6667// Autoload dependencies using Composer
6768require_once 'vendor/autoload.php ' ;
6869
70+ // PHP error handling
71+ $ config = new Env ('.env ' );
72+ $ debug = $ config ->get ("APP_DEBUG " );
73+ if ($ debug == "true " ) {
74+ $ whoops = new \Whoops \Run ;
75+ $ whoops ->pushHandler (new \Whoops \Handler \PrettyPageHandler );
76+ $ whoops ->register ();
77+ }
78+
6979// Load application routes
7080require 'routes/web.php ' ;
7181
You can’t perform that action at this time.
0 commit comments