diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 4b9013f..ca85999 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -25,7 +25,7 @@ public function register(): void $this->app->singleton(ClientContract::class, static function (): Client { $apiKey = config('proxyapi.api_key'); - if (!empty($apiKey)) { + if (!is_string($apiKey)) { throw ApiKeyIsMissing::create(); }