Skip to content

Commit

Permalink
Merge pull request #101 from fideloper/master
Browse files Browse the repository at this point in the history
Merging fix for service provider, see 9cc0015
  • Loading branch information
fideloper authored Dec 31, 2017
2 parents 3c6449d + 3530eba commit 890f573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TrustedProxyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TrustedProxyServiceProvider extends ServiceProvider
*/
public function boot()
{
$source = realpath(__DIR__.'/../config/trustedproxy.php');
$source = realpath($raw = __DIR__.'/../config/trustedproxy.php') ?: $raw;

if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
$this->publishes([$source => config_path('trustedproxy.php')]);
Expand Down

0 comments on commit 890f573

Please sign in to comment.