Closed jevantang closed 3 months ago
@mcamara Laravel 11 Is it still supported?
package still not support new version from laravel
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
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.
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.
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!
@mcamara php artisan route:cache also route:trans:cache return 404 in laravel 11
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 🙁
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());
...
}
after laravel add new method
loadCachedRouteUsing
toRouteServiceProvider
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! 🙂
Laravel 11 has been released
thank you