{"slug": "what-we-learned-building-a-self-hosted-laravel-cms-with-55-languages-and-per", "title": "What we learned building a self-hosted Laravel CMS with 55 languages and per-language URLs", "summary": "A developer built RJ Nexus, an open-source, self-hosted CMS on Laravel 12 that supports 55 languages with per-language SEO-friendly URLs, a drag-and-drop page builder with 80+ widgets, and a free AI engine that requires no API key. The project uses a two-layer caching system combining spatie/laravel-responsecache with LiteSpeed LSCache to keep performance viable on shared hosting, and the developer notes that Laravel validation silently stripped translated slugs and content until validation rules were extended to cover nested translation fields.", "body_md": "I have been building **RJ Nexus**, a modern, self-hosted CMS on top of **Laravel 12**. You install it on your own hosting, keep full ownership of your data, and extend it with isolated plugins and themes.\n\nIt started small. Today it supports **55 languages** with per-language URLs, ships with a visual page builder with **80+ widgets**, and has a **free AI engine that needs no API key**.\n\nThis post is about the interesting problems along the way, and an invitation: the project is open source and I would love your help.\n\nMany CMS setups bolt multilingual support on later. I wanted it built in from the start, which meant solving a few things properly.\n\nA page should not have one URL with a language prefix glued on. It should have a **real, SEO-friendly URL in each language**:\n\n```\n/en/about\n/az/haqqimizda\n```\n\nThat sounds simple until you handle it everywhere: routing, the editor, the page builder, translations, and quick edits from the posts list.\n\nOne of the nastiest bugs I hit was in validation. Laravel's validation was **stripping translated slugs and content before they were saved**, because the translated fields were not part of the validated data. Everything looked fine in the form, then silently vanished on save.\n\nThe lesson: when you build nested or dynamic fields (like `translations[az][slug]`), make sure your validation rules actually cover them, because validated data only contains what you validated.\n\nArabic and Kurdish need right-to-left layouts. I handle this at the language level, so adding a new RTL language is mostly a matter of registering it, not rewriting templates.\n\nGoing from 17 to 38 and then to 55 languages exposed performance problems in places I did not expect. For example, the installer's language selection screen has a 3D planet animation. With 38 languages it stuttered, so the animation now calculates planet density, size, and stagger speed dynamically based on how many languages are available.\n\nRJBuilder is a drag-and-drop builder with **80+ widgets**, responsive controls, and dynamic tags. Each widget is two files:\n\n`render()`\nA few rules I follow for every widget:\n\n`<button>` elements, ARIA attributes, keyboard navigation, and `prefers-reduced-motion` support.\nThe accordion widget is a good reference if you want to build your own.\n\nRJ Nexus has two AI modes:\n\n`Ctrl+K`).\nKeeping a free, no-setup option mattered to me. Many people never configure an API key, and a feature nobody sets up is a feature nobody uses.\n\nMany CMS users run on shared hosting, so speed cannot depend on expensive infrastructure. RJ Nexus has a two-layer caching system:\n\n| Layer | Package | Works on | \n|---|---|---|\n| Response Cache | `spatie/laravel-responsecache` | Any PHP hosting | \n| LiteSpeed LSCache | `litespeed/lscache-laravel` | LiteSpeed / OpenLiteSpeed | \n\nResponse Cache is the universal baseline. On LiteSpeed hosts, pages can be served from the web server before PHP even starts.\n\nA few features came from simply using the admin panel every day:\n\n`/install.php`, and follow the steps. No terminal needed, which matters on shared hosting.\nYou can try the live demo here: **[rj-nexus.onrender.com](https://rj-nexus.onrender.com)** (add `/admin` for the admin panel; demo credentials are in the README). The demo may not run the latest version.\n\nThis is an open source project, and there are ways to contribute that do not require deep knowledge of the codebase:\n\nEvery contribution is recognized. Contributors are listed by name in the `SUPPORTERS.md` file and on the website, and earn supporter titles named after stars: Proxima, Vega, Sirius, and Polaris.\n\nOpen issues are here: [github.com/rj-nexus/rj-nexus/issues](https://github.com/rj-nexus/rj-nexus/issues)\n\nIf you have built something multilingual before, I would love to hear how you handled per-language URLs. What would you do differently? Let me know in the comments. And if you find the project useful, a ⭐ on GitHub helps more than you might think.", "url": "https://wpnews.pro/news/what-we-learned-building-a-self-hosted-laravel-cms-with-55-languages-and-per", "canonical_source": "https://dev.to/mrruhid/what-we-learned-building-a-self-hosted-laravel-cms-with-55-languages-and-per-language-urls-46jl", "published_at": "2026-11-27 21:36:11+00:00", "updated_at": "2026-11-27 21:44:13.800784+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-products"], "entities": ["RJ Nexus", "Laravel", "RJBuilder", "LiteSpeed", "spatie/laravel-responsecache", "GitHub"], "also_reported_by": [], "takeaway": "When saving nested translation fields like translations[az][slug], extend Laravel validation rules to cover them, because validated data only contains what was validated and translated slugs otherwise vanish silently on save.", "recommendation": {"advice": "Cover every nested translation field in your validation rules before saving, since Laravel's validated data drops unvalidated keys and silently discards translated slugs and content.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/what-we-learned-building-a-self-hosted-laravel-cms-with-55-languages-and-per", "markdown": "https://wpnews.pro/news/what-we-learned-building-a-self-hosted-laravel-cms-with-55-languages-and-per.md", "text": "https://wpnews.pro/news/what-we-learned-building-a-self-hosted-laravel-cms-with-55-languages-and-per.txt", "jsonld": "https://wpnews.pro/news/what-we-learned-building-a-self-hosted-laravel-cms-with-55-languages-and-per.jsonld"}}