Skip to content

Commit

Permalink
Prepend middleware instead of append (#54)
Browse files Browse the repository at this point in the history
Refs #53
  • Loading branch information
hotmeteor authored May 21, 2021
1 parent 3e0614d commit ffdbff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpectatorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function mergeConfig()

protected function registerMiddleware()
{
$this->app[Kernel::class]->appendMiddlewareToGroup('api', Middleware::class);
$this->app[Kernel::class]->prependMiddlewareToGroup('api', Middleware::class);
}

protected function decorateTestResponse()
Expand Down

0 comments on commit ffdbff0

Please sign in to comment.