Skip to content

Commit 39ebe91

Browse files
committed
Merge pull request #20 from arrizalamin/lumen-support
Lumen Support
2 parents 0dbcf72 + ec889a5 commit 39ebe91

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/LocationServiceProvider.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ public function register()
3030
{
3131
$config = __DIR__.'/Config/config.php';
3232

33-
$this->mergeConfigFrom($config, 'location');
33+
if (class_exists('Illuminate\Foundation\Application', false)) {
34+
$this->publishes([
35+
$config => config_path('location.php'),
36+
], 'config');
37+
}
3438

35-
$this->publishes([
36-
$config => config_path('location.php'),
37-
], 'config');
39+
$this->mergeConfigFrom($config, 'location');
3840
}
3941

4042
/**

0 commit comments

Comments
 (0)