Skip to content

Commit 77ffabb

Browse files
committed
fix provider
1 parent 7b82985 commit 77ffabb

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/ClashRoyaleServiceProvider.php

+6-9
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,23 @@ class ClashRoyaleServiceProvider extends ServiceProvider
1818
*/
1919
public function boot()
2020
{
21-
if ($this->app->runningInConsole()) {
22-
$this->publishes([
23-
__DIR__ . '/../config/clash-royale.php' => config_path('clash-royale.php'),
24-
], 'config');
25-
}
21+
$this->registerPublishing();
2622
}
2723

2824
/**
2925
* Register the application services.
3026
*/
3127
public function register()
3228
{
33-
$this->mergeConfigFrom(__DIR__ . '/../config/clash-royale.php', 'clash-royale');
29+
$this->mergeConfigFrom(
30+
__DIR__.'/../config/clash-royale.php',
31+
'clash-royale'
32+
);
3433

35-
$this->offerPublishing();
36-
3734
Api::setApiToken(config('clash-royale.token'));
3835
}
3936

40-
protected function offerPublishing(): void
37+
protected function registerPublishing(): void
4138
{
4239
if ($this->app->runningInConsole()) {
4340
$this->publishes([

0 commit comments

Comments
 (0)