We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f0bfd8 + 0ec9e75 commit 8e7014dCopy full SHA for 8e7014d
README.md
@@ -461,7 +461,18 @@ To cache your routes, use:
461
php artisan route:trans:cache
462
```
463
464
-... instead of the normal `route:cache` command.
+... instead of the normal `route:cache` command. Using `artisan route:cache` will **not** work correctly!
465
+
466
+For the route caching solution to work, it is required to make a minor adjustment to your application route provision.
467
468
+In your App's `RouteServiceProvider`, use the `LoadsTranslatedCachedRoutes` trait:
469
470
+```php
471
+<?php
472
+class RouteServiceProvider extends ServiceProvider
473
+{
474
+ use \Mcamara\LaravelLocalization\Traits\LoadsTranslatedCachedRoutes;
475
+```
476
477
478
For more details see [here](CACHING.md).
0 commit comments