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