diff --git a/src/AwsServiceProvider.php b/src/AwsServiceProvider.php index c071a47..2361230 100644 --- a/src/AwsServiceProvider.php +++ b/src/AwsServiceProvider.php @@ -27,14 +27,13 @@ class AwsServiceProvider extends ServiceProvider public function boot() { if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { - $this->publishes([ - dirname(__DIR__).'/config/aws_publish.php' => config_path('aws.php') - ]); + $this->publishes( + [__DIR__.'/../config/aws_publish.php' => config_path('aws.php')], + 'aws-config' + ); } elseif ($this->app instanceof LumenApplication) { $this->app->configure('aws'); } - - $this->mergeConfigFrom(dirname(__DIR__).'/config/aws_default.php', 'aws'); } /** @@ -44,6 +43,11 @@ public function boot() */ public function register() { + $this->mergeConfigFrom( + __DIR__.'/../config/aws_default.php', + 'aws' + ); + $this->app->singleton('aws', function ($app) { $config = $app->make('config')->get('aws'); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy