File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,13 @@ class AwsServiceProvider extends ServiceProvider
2727 public function boot ()
2828 {
2929 if ($ this ->app instanceof LaravelApplication && $ this ->app ->runningInConsole ()) {
30- $ this ->publishes ([
31- dirname (__DIR__ ).'/config/aws_publish.php ' => config_path ('aws.php ' )
32- ]);
30+ $ this ->publishes (
31+ [__DIR__ .'/../config/aws_publish.php ' => config_path ('aws.php ' )],
32+ 'aws-config '
33+ );
3334 } elseif ($ this ->app instanceof LumenApplication) {
3435 $ this ->app ->configure ('aws ' );
3536 }
36-
37- $ this ->mergeConfigFrom (dirname (__DIR__ ).'/config/aws_default.php ' , 'aws ' );
3837 }
3938
4039 /**
@@ -44,6 +43,11 @@ public function boot()
4443 */
4544 public function register ()
4645 {
46+ $ this ->mergeConfigFrom (
47+ __DIR__ .'/../config/aws_default.php ' ,
48+ 'aws '
49+ );
50+
4751 $ this ->app ->singleton ('aws ' , function ($ app ) {
4852 $ config = $ app ->make ('config ' )->get ('aws ' );
4953
You can’t perform that action at this time.
0 commit comments