Skip to content

Commit 87f110e

Browse files
committed
✨ allows for default package configuration
1 parent bcd07e0 commit 87f110e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/GeoIPServiceProvider.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ public function register()
1919
$this->registerResources();
2020
$this->registerGeoIpCommands();
2121
}
22+
23+
if ($this->isLumen() === false) {
24+
$configPath = __DIR__ . '/../config/geoip.php';
25+
$this->mergeConfigFrom($configPath, 'geoip');
26+
}
27+
2228
}
2329

2430
/**
@@ -72,4 +78,4 @@ protected function isLumen()
7278
{
7379
return str_contains($this->app->version(), 'Lumen') === true;
7480
}
75-
}
81+
}

0 commit comments

Comments
 (0)