make(Config::class); $appConfig->set(require config_path('app.php')); $app->bootstrap($appConfig); /** * Configure application */ $timezone = $app->get('config')->get('timezone'); ini_set('date.timezone', $timezone); if (config('environment') == 'development') { $errorHandler = $app->get('error.handler'); $errorHandler->setEnvironment(Handler::ENV_DEVELOPMENT); $app->bind(HandlerInterface::class, 'error.handler.development'); ini_set('display_errors', true); error_reporting(E_ALL); } else { ini_set('display_errors', false); }