Skip to content

Commit

Permalink
Merge pull request fideloper#99 from taylorotwell/patch-1
Browse files Browse the repository at this point in the history
Merge configuration if configuration isn't cached.
  • Loading branch information
fideloper authored Dec 19, 2017
2 parents 3f41fb3 + 25b8c3e commit 407d885
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/TrustedProxyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public function boot()
$this->app->configure('trustedproxy');
}

$this->mergeConfigFrom($source, 'trustedproxy');

if ($this->app instanceof LaravelApplication && ! $this->app->configurationIsCached()) {
$this->mergeConfigFrom($source, 'trustedproxy');
}
}

/**
Expand Down

0 comments on commit 407d885

Please sign in to comment.