public function register() { app()->singleton('config', function () { $config = new Config(); $environment = $this->getEnvironment(); $config->loadConfigFiles(app()->getBasePath() . '/config'); return $config; }); }
/** * @return bool */ public static function isTesting() { if (Config::get('env') === 'testing') { return true; } return false; }