make(Config::class); $appConfig->set(require config_path('app.php')); $app->bootstrap($appConfig); /** * Configure environment */ if (config('environment') == 'development') { $errorHandler = $app->get('error.handler'); $errorHandler->setEnvironment(Handler::ENV_DEVELOPMENT); $app->bind(HandlerInterface::class, 'error.handler.development'); }