From f20de70365ea288771b73a2238da8f5ff09dc017 Mon Sep 17 00:00:00 2001 From: Ahmet Kaba Date: Wed, 15 Feb 2023 21:38:38 +0300 Subject: [PATCH 1/2] [10.x] upgrade doc updated for removed registerPolicies method --- upgrade.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/upgrade.md b/upgrade.md index ea57ceb20dd..a5745b1e89e 100644 --- a/upgrade.md +++ b/upgrade.md @@ -39,6 +39,7 @@ - [The `Redirect::home` Method](#redirect-home) - [The `Bus::dispatchNow` Method](#dispatch-now) - [ULID Columns](#ulid-columns) +- [The `registerPolicy` Method](#register-policy) @@ -281,6 +282,13 @@ public function rules() } ``` + +### The `registerPolicy` Method + +**Likelihood Of Impact: Very Low** + +Now the policies are automatically registered. You may simply delete the `registerPolicies` call from `App\Providers\AuthServiceProvider`. + ### Miscellaneous From cffaca6eae331f1b8de284fa7e14b07346718801 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 16 Feb 2023 13:37:37 -0600 Subject: [PATCH 2/2] Update upgrade.md --- upgrade.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/upgrade.md b/upgrade.md index a5745b1e89e..d493d552d41 100644 --- a/upgrade.md +++ b/upgrade.md @@ -38,8 +38,8 @@ - [Relation `getBaseQuery` Method](#relation-getbasequery-method) - [The `Redirect::home` Method](#redirect-home) - [The `Bus::dispatchNow` Method](#dispatch-now) -- [ULID Columns](#ulid-columns) - [The `registerPolicy` Method](#register-policy) +- [ULID Columns](#ulid-columns) @@ -109,6 +109,15 @@ If your application is customizing its "public path" by binding `path.public` in app()->usePublicPath(__DIR__.'/public'); ``` +### Authorization + + +### The `registerPolicy` Method + +**Likelihood Of Impact: Low** + +The `registerPolicies` method of the `AuthServiceProvider` is now invoked automatically by the framework. Therefore, you may remove the call to this method from the `boot` method of your application's `AuthServiceProvider`. + ### Cache @@ -282,13 +291,6 @@ public function rules() } ``` - -### The `registerPolicy` Method - -**Likelihood Of Impact: Very Low** - -Now the policies are automatically registered. You may simply delete the `registerPolicies` call from `App\Providers\AuthServiceProvider`. - ### Miscellaneous