mcamara / laravel-localization

Easy localization for Laravel
MIT License
3.36k stars 512 forks source link

Laravel 11 Support. #899

Closed jevantang closed 3 months ago

jevantang commented 6 months ago

Laravel 11 has been released

thank you

jevantang commented 6 months ago

@mcamara Laravel 11 Is it still supported?

Genius-code commented 6 months ago

package still not support new version from laravel

adicco commented 6 months ago

The bulk of it seems to work for me on Laravel 11, but since the RouteServiceProvider was deprecated, I am not sure how to deal with caching. Any help appreciated - thank you!

This was also mentiond here https://github.com/mcamara/laravel-localization/pull/900

relaypilot commented 6 months ago

After using mcamara's package for several years (that seems abandoned for the last year+), I switched today to https://github.com/codezero-be/laravel-localized-routes . The switch was very easy and it offers support for L11.

adicco commented 6 months ago

After using mcamara's package for several years (that seems abandoned for the last year+), I switched today to https://github.com/codezero-be/laravel-localized-routes . The switch was very easy and it offers support for L11.

Thank you, this library actually looks great.

cleargoal commented 6 months ago

After using mcamara's package for several years (that seems abandoned for the last year+), I switched today to https://github.com/codezero-be/laravel-localized-routes . The switch was very easy and it offers support for L11.

Thank you!

ahmedsayedabdelsalam commented 6 months ago

@mcamara php artisan route:cache also route:trans:cache return 404 in laravel 11

ahmedsayedabdelsalam commented 5 months ago

https://github.com/laravel/framework/pull/51249

dani-vrd commented 5 months ago

After using mcamara's package for several years (that seems abandoned for the last year+), I switched today to https://github.com/codezero-be/laravel-localized-routes . The switch was very easy and it offers support for L11.

Unfortunately it does not work with Ziggy - Laravel routes in JS or at least I have not been able to get it 🙁

ahmedabdel3al commented 5 months ago

https://github.com/laravel/framework/pull/51292

after laravel add new method loadCachedRouteUsing to RouteServiceProvider

class AppServiceProvider extends ServiceProvider
{  
    use \Mcamara\LaravelLocalization\Traits\LoadsTranslatedCachedRoutes;
    /**
     * Bootstrap any application services.
     */
    public function boot(): void
    {
        RouteServiceProvider::loadCachedRoutesUsing(fn() => $this->loadCachedRoutes());
        ...
    }  
dani-vrd commented 4 months ago

laravel/framework#51292

after laravel add new method loadCachedRouteUsing to RouteServiceProvider

class AppServiceProvider extends ServiceProvider
{  
    use \Mcamara\LaravelLocalization\Traits\LoadsTranslatedCachedRoutes;
    /**
     * Bootstrap any application services.
     */
    public function boot(): void
    {
        RouteServiceProvider::loadCachedRoutesUsing(fn() => $this->loadCachedRoutes());
        ...
    }  

Thank you very much for your effort! Works now like a charm! 🙂