Skip to content

Commit

Permalink
[v5] Explain no-typo in Middleware namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Feb 8, 2024
1 parent d829888 commit f81a2f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/basic-usage/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ protected $middlewareAliases = [
];
```

> See a typo? You are reading older `v5` documentation. Note that since v6 the 'Middleware' namespace is singular. Prior to v6 it was 'Middlewares'. If you are still using 'Middlewares' (plural), it is time to upgrade your app to the latest version of this package!

**YOU SHOULD ALSO** set [the `$middlewarePriority` array](https://laravel.com/docs/master/middleware#sorting-middleware) to include this package's middleware before the `SubstituteBindings` middleware, else you may get *404 Not Found* responses when a *403 Not Authorized* response might be expected.

## Middleware via Routes
Expand Down

0 comments on commit f81a2f0

Please sign in to comment.