Skip to content

Commit

Permalink
Fixed service provider when inside phar
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored Dec 31, 2017
1 parent bd53593 commit 9cc0015
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 9cc0015

Please sign in to comment.