diff --git a/app/App.php b/app/App.php index 5e17e65..8f4dede 100644 --- a/app/App.php +++ b/app/App.php @@ -103,7 +103,7 @@ class App extends Application } public function setDebug() { - $this['debug'] = null !== $this->config('app.debug') ? $this->config('app.debug') : true; + $this['debug'] = (null !== $this->config('app.debug') ? $this->config('app.debug') : true); $this['env'] = getenv('PHP_ENV'); if (!$this['env']) { $this['env'] = null !== $this->config('app.environment') ? $this->config('app.environment') : 'dev'; diff --git a/app/providers.php b/app/providers.php index 34d365f..caae940 100644 --- a/app/providers.php +++ b/app/providers.php @@ -33,7 +33,7 @@ use Symfony\Bridge\Monolog\Logger; use WhoopsPimple\WhoopsServiceProvider; $app->register(new ConfigServiceProvider(), [ - 'config.path' => $app->getConfDirectory(), + 'config.path' => $app->getConfDirectory() . '/config.yml', ]); $app->setDebug();