Skip to content

Commit

Permalink
Updated the service provider to not register the middleware globally
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Nov 15, 2015
1 parent 2fa1087 commit 6637e41
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/LaravelCensorServiceProvider.php
Expand Up @@ -26,10 +26,6 @@ public function boot()
$this->publishes([
__DIR__ . '/../config/censor.php' => config_path('censor.php')
], 'config');

/** @var Kernel $kernel */
$kernel = $this->app['Illuminate\Contracts\Http\Kernel'];
$kernel->pushMiddleware(CensorMiddleware::class);
}

/**
Expand Down

0 comments on commit 6637e41

Please sign in to comment.