Skip to content

Commit

Permalink
Fix missing middleware alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mchev committed Feb 13, 2023
1 parent a9b5286 commit 88164c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BanhammerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Mchev\Banhammer\Commands\DeleteExpired;
use Mchev\Banhammer\Middleware\AuthBanned;
use Mchev\Banhammer\Middleware\IPBanned;
use Mchev\Banhammer\Middleware\LogoutBanned;
use Mchev\Banhammer\Models\Ban;
use Mchev\Banhammer\Observers\BanObserver;

Expand All @@ -26,6 +27,7 @@ public function boot(): void
$router = $this->app->make(Router::class);
$router->aliasMiddleware('auth.banned', AuthBanned::class);
$router->aliasMiddleware('ip.banned', IPBanned::class);
$router->aliasMiddleware('logout.banned', LogoutBanned::class);

if ($this->app->runningInConsole()) {

Expand Down

0 comments on commit 88164c0

Please sign in to comment.