-
-
Notifications
You must be signed in to change notification settings - Fork 511
Route caching doesn't work in Laravel 11 #927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for reporting this bug. Unfortunately, I’m not aware of a simple workaround for version 11 at the moment. However, we are actively working on version 3 of this package, which will eliminate the need for custom caching and fully leverage Laravel’s built-in cache. This update will resolve the issue once it’s ready. |
@iwasherefirst2 Excellent news! 👍 Laravel 10 has reached End of Life today, when can we expect version 3 of Laravel Localization ? And would version 3 also allow the use of Octane (see #780 & #828) ? Thanks & Good luck for version 3! 💪 |
Hopefully version 3 will support older versions, |
@jbelien The translated routes are my biggest concern. I need to find a good solution that minimizes breaking changes. I expect version 3.x to be released within the next 2–3 months at the latest. I believe our changes will make it compatible with Octane, but that's not a goal for this release. It would be great if someone could test it once 3.x is ready and confirm @szwss I’d like to ensure compatibility with Laravel 9, but I can't make any guarantees at this point. |
I can't get route caching to work with Laravel 12 either - are there any plans for updates? |
Describe the bug
Route caching doesn't work in Laravel 11. The package's caching documentation relies on
RouteServiceProvider
which has been removed in Laravel 11.To Reproduce
artisan route:trans:cache
becauseRouteServiceProvider
doesn't existExpected behavior
Route caching should work with Laravel 11's new routing system
More info:
localize
,localizationRedirect
,localeCookieRedirect
,localeViewPath
Additional context
Current caching documentation at https://github.com/mcamara/laravel-localization/blob/master/CACHING.md is incompatible with Laravel 11.
The text was updated successfully, but these errors were encountered: