diff --git a/deprecations.md b/deprecations.md new file mode 100644 index 00000000000..76a0e5eae90 --- /dev/null +++ b/deprecations.md @@ -0,0 +1,16 @@ +# Deprecations + +- [Introduction](#introduction) + - [Route Middleware](#route-middleware) + + +## Introduction + +Laravel will, when necessary, deprecate certain features or code within the framework. In an effort to help you track those changes, and update your applications prior to the deprecated code being removed, this page will highlight some of those deprecations. The best way to find **all** the deprecated code is to search `laravel/framework` for `@deprecated`. + + +### Route Middleware + +In the `\Illuminate\Foundation\Http\Kernel` class, the `$routeMiddleware` property was renamed to `$middlewareAliases` to better reflect its purpose. The `$routeMiddleware` property and the `getRouteMiddleware()` method have been deprecated, and will be removed in Laravel 11. + +https://github.com/laravel/framework/commit/78eb546e9c789ac84af87bb362535cc2883e4db4 diff --git a/documentation.md b/documentation.md index 149e1955e4a..8b6578cdc0e 100644 --- a/documentation.md +++ b/documentation.md @@ -2,6 +2,7 @@ - [Release Notes](/docs/{{version}}/releases) - [Upgrade Guide](/docs/{{version}}/upgrade) - [Contribution Guide](/docs/{{version}}/contributions) + - [Deprecations](/docs/{{version}}/deprecations) - ## Getting Started - [Installation](/docs/{{version}}/installation) - [Configuration](/docs/{{version}}/configuration)