File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -18,26 +18,23 @@ class ClashRoyaleServiceProvider extends ServiceProvider
18
18
*/
19
19
public function boot ()
20
20
{
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 ();
26
22
}
27
23
28
24
/**
29
25
* Register the application services.
30
26
*/
31
27
public function register ()
32
28
{
33
- $ this ->mergeConfigFrom (__DIR__ . '/../config/clash-royale.php ' , 'clash-royale ' );
29
+ $ this ->mergeConfigFrom (
30
+ __DIR__ .'/../config/clash-royale.php ' ,
31
+ 'clash-royale '
32
+ );
34
33
35
- $ this ->offerPublishing ();
36
-
37
34
Api::setApiToken (config ('clash-royale.token ' ));
38
35
}
39
36
40
- protected function offerPublishing (): void
37
+ protected function registerPublishing (): void
41
38
{
42
39
if ($ this ->app ->runningInConsole ()) {
43
40
$ this ->publishes ([
You can’t perform that action at this time.
0 commit comments