diff --git a/src/GeoIPServiceProvider.php b/src/GeoIPServiceProvider.php index 96cb051..a262cbe 100644 --- a/src/GeoIPServiceProvider.php +++ b/src/GeoIPServiceProvider.php @@ -19,6 +19,10 @@ public function register() $this->registerResources(); $this->registerGeoIpCommands(); } + + if ($this->isLumen() === false) { + $this->mergeConfigFrom(__DIR__ . '/../config/geoip.php', 'geoip'); + } } /** @@ -72,4 +76,4 @@ protected function isLumen() { return str_contains($this->app->version(), 'Lumen') === true; } -} \ No newline at end of file +}