Download the PHP package czim/laravel-localization-route-cache without Composer
On this page you can find all versions of the php package czim/laravel-localization-route-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download czim/laravel-localization-route-cache
More information about czim/laravel-localization-route-cache
Files in czim/laravel-localization-route-cache
Package laravel-localization-route-cache
Short Description Translated route caching solution for laravel localization
License MIT
Homepage https://github.com/czim/laravel-localization-route-cache
Informations about the package laravel-localization-route-cache
Translated Route Caching Solution for Laravel Localization
Important: This solution has been merged into mcamara/laravel-localization
since version 1.3.11
.
This package is no longer required!
A cobbled together fix to allow caching routes per locale for mcamara's laravel localization.
See the github issue related to this fix in the original package.
This has been tested with laravel 5.1
through 5.6
.
Version Compatibility
Laravel | Package |
---|---|
5.1.x | 0.8.x |
5.2.x and up | 0.9.x |
Change log
View the change log.
Install
Via Composer
If you don't use auto-discovery, add the service provider after mcamara's in your config/app.php
:
In your App's RouteServiceProvider
, use the LoadsTranslatedCachedRoutes
trait:
Usage
To cache your routes, use
instead of the normal route:cache
command.
To list the routes for a given locale, use
To clear cached routes for all locales, use
Note that using route:clear
will also effectively unset the cache (at the minor cost of leaving some clutter in your bootstrap/cache directory).
Credits
- Coen Zimmerman
- All Contributors
License
The MIT License (MIT). Please see License File for more information.