Skip to content

Commit fee376a

Browse files
committed
lumen friendly
1 parent fb321dd commit fee376a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/GeocoderServiceProvider.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class GeocoderServiceProvider extends ServiceProvider
1010
public function boot()
1111
{
1212
$this->publishes([
13-
__DIR__.'/../config/geocoder.php' => config_path('geocoder.php'),
13+
__DIR__.'/../config/geocoder.php' => $this->config_path('geocoder.php'),
1414
], 'config');
1515
}
1616

@@ -26,4 +26,9 @@ public function register()
2626
->setBounds(config('geocoder.bounds'));
2727
});
2828
}
29+
30+
function config_path($path = '')
31+
{
32+
return app()->basePath() . '/config' . ($path ? '/' . $path : $path);
33+
}
2934
}

0 commit comments

Comments
 (0)