2017 © Pedro Peláez
 

library laravel-localization-route-cache

Translated route caching solution for laravel localization

image

czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  • Saturday, July 28, 2018
  • by czim
  • Repository
  • 4 Watchers
  • 43 Stars
  • 28,902 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 9 Forks
  • 1 Open issues
  • 10 Versions
  • 26 % Grown

The README.md

Translated Route Caching Solution for Laravel Localization

![Software License][ico-license], (*1)

Important: This solution has been merged into mcamara/laravel-localization since version 1.3.11. This package is no longer required!, (*2)

A cobbled together fix to allow caching routes per locale for mcamara's laravel localization., (*3)

See the github issue related to this fix in the original package., (*4)

This has been tested with laravel 5.1 through 5.6., (*5)

Version Compatibility

Laravel Package
5.1.x 0.8.x
5.2.x and up 0.9.x

Change log

View the change log., (*6)

Install

Via Composer, (*7)

``` bash $ composer require czim/laravel-localization-route-cache, (*8)


If you don't use auto-discovery, add the service provider *after* mcamara's in your `config/app.php`: ``` php Mcamara\LaravelLocalization\LaravelLocalizationServiceProvider::class, Czim\LaravelLocalizationRouteCache\LaravelLocalizationServiceProvider::class,

In your App's RouteServiceProvider, use the LoadsTranslatedCachedRoutes trait:, (*9)

``` php class RouteServiceProvider extends ServiceProvider { use \Czim\LaravelLocalizationRouteCache\Traits\LoadsTranslatedCachedRoutes;, (*10)


## Usage To cache your routes, use ``` bash php artisan route:trans:cache

instead of the normal route:cache command., (*11)

To list the routes for a given locale, use, (*12)

``` bash php artisan route:trans:list {locale}, (*13)

# for instance:
php artisan route:trans:list en

To clear cached routes for all locales, use ``` bash php artisan route:trans:clear

Note that using route:clear will also effectively unset the cache (at the minor cost of leaving some clutter in your bootstrap/cache directory)., (*14)

Credits

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

28/07 2018

dev-master

9999999-dev https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization

28/07 2018

0.9.7

0.9.7.0 https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization

11/12 2017

0.9.6

0.9.6.0 https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization

08/09 2017

0.9.5

0.9.5.0 https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization

17/12 2016

dev-laravel-5-1

dev-laravel-5-1 https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization

17/12 2016

0.8.1

0.8.1.0 https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization

18/11 2016

0.9.4

0.9.4.0 https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization

31/08 2016

0.9.3

0.9.3.0 https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization

26/08 2016

0.9.2

0.9.2.0 https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization

25/08 2016

0.9.1

0.9.1.0 https://github.com/czim/laravel-localization-route-cache

Translated route caching solution for laravel localization

  Sources   Download

MIT

The Requires

 

The Development Requires

translations cache route localization