diff --git a/src/NightwatchServiceProvider.php b/src/NightwatchServiceProvider.php index c40c38ec..c6ad19d9 100644 --- a/src/NightwatchServiceProvider.php +++ b/src/NightwatchServiceProvider.php @@ -184,7 +184,7 @@ private function registerAndCaptureConfig(): void $this->config = $this->app->make(Repository::class); - $this->nightwatchConfig = $this->config->all()['nightwatch'] ?? []; + $this->nightwatchConfig = (array) $this->config->get('nightwatch', []); } private function registerBindings(): void @@ -197,7 +197,7 @@ private function registerBindings(): void private function registerLogger(): void { - if (! isset($this->config->all()['logging']['channels']['nightwatch'])) { + if (! $this->config->has('logging.channels.nightwatch')) { $this->config->set('logging.channels.nightwatch', [ 'driver' => 'custom', 'via' => Logger::class,