Skip to content

Commit 9da3af3

Browse files
committed
Update upgrade guide
1 parent a0a71da commit 9da3af3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

UPGRADE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ The middleware is no longer automatically applied to localized routes if the `us
1919

2020
If you choose to use the middleware, you need to apply it manually to your routes.
2121

22+
🔸 **Actions Required**
23+
24+
- Remove the `use_locale_middleware` option from your published `config/localized-routes.php` config file.
25+
- Remove the `use_localizer` option from your published `config/localized-routes.php` config file.
26+
- Make sure you apply the middleware to your routes manually, either on specific routes or route groups, or by adding it to the `web` middleware group in `app/Http/Kernel.php`.
27+
- Make sure you also add the middleware to the `$middlewarePriority` array in `app/Http/Kernel.php` in the correct spot.
28+
2229
```php
2330
protected $middlewarePriority = [
2431
\Illuminate\Session\Middleware\StartSession::class, // <= after this
@@ -28,13 +35,6 @@ protected $middlewarePriority = [
2835
];
2936
```
3037

31-
🔸 **Actions Required**
32-
33-
- Remove the `use_locale_middleware` option from your published `config/localized-routes.php` config file.
34-
- Remove the `use_localizer` option from your published `config/localized-routes.php` config file.
35-
- Make sure you apply the middleware to your routes manually, either on specific routes or route groups, or by adding it to the `web` middleware group in `app/Http/Kernel.php`.
36-
- Make sure you also add the middleware to the `$middlewarePriority` array in `app/Http/Kernel.php` in the correct spot.
37-
3838
---
3939

4040
### ➡ Supported Locales, Slugs and Domains

0 commit comments

Comments
 (0)