diff --git a/src/Config/GrokConfig.php b/src/Config/GrokConfig.php index 1eec9bb..036b123 100644 --- a/src/Config/GrokConfig.php +++ b/src/Config/GrokConfig.php @@ -23,6 +23,8 @@ public function __construct( if (! $this->apiKey) { throw GrokException::missingApiKey(); } - $this->timeout = $timeout ?? (int) DefaultConfig::TIMEOUT->value; + $this->timeout = $this->timeout !== 0 + ? $this->timeout + : ((int) config('grok.timeout') ?: (int) DefaultConfig::TIMEOUT->value); } }