You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,13 @@ The middleware is no longer automatically applied to localized routes if the `us
19
19
20
20
If you choose to use the middleware, you need to apply it manually to your routes.
21
21
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
+
22
29
```php
23
30
protected $middlewarePriority = [
24
31
\Illuminate\Session\Middleware\StartSession::class, // <= after this
- 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.
0 commit comments