Skip to content

Commit 3a04fef

Browse files
committed
Merge pull request #13 from AndreasHeiberg/patch-1
Improved compatibility with lumen
2 parents f284560 + 6eb2ea3 commit 3a04fef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/GeoIPServiceProvider.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ public function boot()
2323
return $app['geoip'];
2424
};
2525

26-
$this->publishes([
27-
__DIR__.'/config/config.php' => config_path('geoip.php'),
28-
], 'config');
26+
if (function_exists('config_path')) {
27+
$this->publishes([
28+
__DIR__.'/config/config.php' => config_path('geoip.php'),
29+
], 'config');
30+
}
2931
}
3032

3133
/**

0 commit comments

Comments
 (0)