Laravel Localization: Routing, Ziggy and SSR

A practical series about building Laravel localization infrastructure: route cache, logical route names, Ziggy, and Inertia SSR.

laravel-localization-route-cache-url-generation.png
Laravel

How route cache broke URL generation in my custom Laravel localization package

While building my own Laravel localization package, I added stable logical route names and URL generation for another locale. Everything worked without caching, but after route:cache the pages still opened while URL generation stopped working. This article explains the cause and the architectural fix.

143
laravel-ziggy-blade-vue-inertia-ssr.png
Laravel

Making Ziggy Work Consistently in Blade, Vue and Inertia SSR

Ziggy can work perfectly in the browser while still failing during SSR. This article explores how to keep one consistent routing contract across Laravel, Blade, Vue and Inertia SSR without creating separate route contexts.

79
laravel-multilingual-shared-slug-vs-translated-slugs.png
Laravel

Laravel Multilingual URLs: Shared Slug vs Translated Slugs for Localized Pages

In ICanUp, Posts and Categories use one shared slug while localized URLs differ through the locale prefix and localized content. I explain why I moved away from translated slugs, how the shared-slug model simplified routing, hreflang, sitemaps, and IndexNow, and when language-specific slugs can still be the better choice.

27