Skip to content

Commit 8ed87d7

Browse files
authored
Update DocumentsServiceProvider.php
According to https://laravel.com/docs/5.5/packages#configuration the `mergeConfigFrom()`-method should be placed in `register()`?
1 parent edaa236 commit 8ed87d7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/DocumentsServiceProvider.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ public function boot()
2727

2828
$this->loadTranslationsFrom(realpath(__DIR__.'/../resources/lang'), 'webfactor');
2929

30-
$this->mergeConfigFrom(
31-
__DIR__.'/../config/webfactor/documents.php', 'webfactor.documents'
32-
);
33-
3430
$this->publishFiles();
3531
}
3632

@@ -41,7 +37,9 @@ public function boot()
4137
*/
4238
public function register()
4339
{
44-
//
40+
$this->mergeConfigFrom(
41+
__DIR__.'/../config/webfactor/documents.php', 'webfactor.documents'
42+
);
4543
}
4644

4745
public function publishFiles()

0 commit comments

Comments
 (0)