From fad85e355e7a5d2cca2703f4ed9933817c7de618 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 16 Feb 2023 16:05:44 -0600 Subject: [PATCH] create "Deprecations" documentation this file will contain documentation on code or features that have been deprecated in the framework, possibly some notes on how to update, and possibly when the code will be removed. --- deprecations.md | 16 ++++++++++++++++ documentation.md | 1 + 2 files changed, 17 insertions(+) create mode 100644 deprecations.md 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)