Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bhushan committed Feb 5, 2025
1 parent 4b88f39 commit 5cd59db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/TreblleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ public function boot(): void
]);
}

/** @var Router $router */
$router = $this->app->make(Router::class);
$router->aliasMiddleware('treblle', TreblleMiddleware::class);

if (! isset($router->getMiddleware()['treblle'])) {
$router->aliasMiddleware('treblle', TreblleMiddleware::class);
}

AboutCommand::add(
section: 'Treblle',
Expand Down

0 comments on commit 5cd59db

Please sign in to comment.