Skip to content
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

Laravel 11 Support. #899

Open
jevantang opened this issue Mar 12, 2024 · 11 comments
Open

Laravel 11 Support. #899

jevantang opened this issue Mar 12, 2024 · 11 comments

Comments

@jevantang
Copy link

Laravel 11 has been released

thank you

@jevantang
Copy link
Author

@mcamara Laravel 11 Is it still supported?

@Genius-code
Copy link

package still not support new version from laravel

@adicco
Copy link

adicco commented Mar 19, 2024

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 #900

@relaypilot
Copy link

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
Copy link

adicco commented Apr 2, 2024

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
Copy link

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
Copy link
Contributor

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

@ahmedsayedabdelsalam
Copy link
Contributor

laravel/framework#51249

@dani-vrd
Copy link

dani-vrd commented May 3, 2024

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
Copy link

ahmedabdel3al commented May 6, 2024

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());
        ...
    }  

@dani-vrd
Copy link

dani-vrd commented May 9, 2024

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! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants