diff --git a/src/Providers/LaravelServiceProvider.php b/src/Providers/LaravelServiceProvider.php index cc9f254..a195725 100644 --- a/src/Providers/LaravelServiceProvider.php +++ b/src/Providers/LaravelServiceProvider.php @@ -7,13 +7,7 @@ class LaravelServiceProvider extends Provider { public function boot() { - $config = config('laravel-log-keeper'); - - if ($config['enabled']) { - if ($config['enabled_remote'] && !$config['remote_disk']) { - throw new Exception("disk not configured for Laravel Log Keeper"); - } - } + // } /** diff --git a/src/Repos/RemoteLogsRepo.php b/src/Repos/RemoteLogsRepo.php index 95df73d..034a1a5 100644 --- a/src/Repos/RemoteLogsRepo.php +++ b/src/Repos/RemoteLogsRepo.php @@ -12,7 +12,12 @@ class RemoteLogsRepo implements LogsRepoInterface public function __construct(array $config) { - $this->config = $config; + $this->config = $config; + + if ($this->config['enabled_remote'] && !$this->config['remote_disk']) { + throw new Exception("remote_disk not configured for Laravel Log Keeper"); + } + $this->localLogPath = storage_path('logs'); $this->disk = Storage::disk($this->config['remote_disk']); $this->remotePath = $this->config['remote_path'] ? $this->config['remote_path'] . '/' : null;