r/laravel • • 21h ago

Laravel Go and Rust are not ready

136 Upvotes

I've been testing both Laravel Go and Rust, especially Go and the amount of plumbing you have to do for a statically typed language is unbearable at some point.

Relationships, you have to use struct tags, which are strings, easy to make mistakes.

The fact that you have to implement models manually, you could miss a field or field type that's in your migration, Laravel PHP handled this so well, one source of truth even if it's not statically typed, IDEs showed suggestions of your migration schema.

Validation workflow can be improved, especially in rust, no auto complete or suggestions, you have to keep the docs open for that.

Error handling could also improve especially for Go.

It's either these frameworks are meant for AI agents, or they'll improve over time, I mean it's version 0.1 so ...

Anyway as a long time Go and PHP dev, these frameworks are far from production when you dive a bit deeper not just benchmarks.


r/laravel • • 7h ago

Laravel Best Practices: Clean Code and Architecture

Thumbnail
codyssey.dev
24 Upvotes

Hey all,

I wrote a course about the bad habits that make Laravel codebases hard to change, work with as well as slower as the complexity grows over time in long-term applications.

The examples are specific to Laravel but they can also be applied to any other PHP application as well with the framework-equivalent approach.

I’ve made some of these mistakes myself as well as I’ve seen them in different projects of different sizes I worked on over the years so the list does come from experience.

The story and the examples are fictional but the habits are based on a true story.

Let me know what you think and if you find anything out of the ordinary in the text, readability or examples.

Thanks!


r/laravel • • 6h ago

I built a shared pixel canvas with Laravel Rust

Post image
7 Upvotes

A fun experiment with Laravel Rust, already saw some cool things come by 👀

Try it: dots.spatie.be
Blogpost: https://freek.dev/3255-i-built-a-shared-pixel-canvas-with-laravel-rust
Repo: https://github.com/spatie/dots.spatie.be


r/laravel • • 1h ago

PagibleAI CMS 0.14: one page tree for all languages, 5 CMS importers and 17 new themes

Post image
0 Upvotes

I maintain PagibleAI CMS, an MIT-licensed CMS package for Laravel 11–13 and PHP 8.2+. 0.14 is out, and most of it is about multilingual sites.

composer require aimeos/pagible
php artisan cms:install
php artisan cms:user -e you@example.com

It uses your User model, guards and queue. Pages are stored in your database and rendered with Blade, or served headless through JSON:API and GraphQL. Editors get a Vue admin with a page tree, drafts, version history and scheduled publishing. AI features (writing, translation, images, an MCP server for agents) are optional and stay off until you add API keys - or can be skipped entirely in custom distributions.

Languages

In 0.13 and earlier, a translation was a separate page linked to the original. Now a page is a single tree node with one variant per language. Each variant has its own URL, drafts and publish date, and moving a page moves all its languages.

Reading a page with fallback looks like this:

use Aimeos\Cms\Models\PageView;

$page = PageView::live($request->user(), 'de-CH')
    ->whereKey($id)
    ->firstOrFail();

$page->lang; // "de" if there's no Swiss German variant, else the source language

de-CH falls back to de by default, and you can set your own chains in config/cms.php, e.g. 'lb' => ['de', 'fr']. The fallback is resolved in a single SQL query, not by loading all variants and filtering in PHP. Pages send hreflang links and a Content-Language header.

When someone publishes changes to the source page, its translations are marked as outdated. Translate sends only the changed elements to DeepL or an LLM and saves the result as a draft for review. If an agency does your French translations, php artisan cms:user --langs=fr translator@example.com lets their account edit the French variants and nothing else.

Change events carry the language, so your app can react when a single translation goes live:

use Aimeos\Cms\ContentType;
use Aimeos\Cms\Events\Change;

Change::listen('published', function (Change $change) {
    if ($change->type() === ContentType::Page && $change->lang === 'fr') {
        // notify the French team, warm a cache, ...
    }
});

Importers

aimeos/pagible-import now covers Drupal 7/8+, Joomla 3–5 and Statamic, and the WordPress and TYPO3 importers were mostly rewritten. You add the old database as a second connection in config/database.php, and the importer reads it with the query builder. It brings over the page tree, redirects, SEO metadata and translations, and the translations end up as variants of the original page.

php artisan cms:joomla-import --connection=joomla --dry-run

All importers accept --since=2026-11-01 to import only content changed since then. That lets you keep the old site live while you build the new one, then sync once more before switching DNS. They're still beta, and every old CMS database has its own quirks. If one fails on your data, an issue with the error message helps most.

Themes

There are 17 new themes, 28 in total, mostly for small businesses: plumbers, electricians, builders, doctors, law firms, cafés, bars, salons, plus SaaS, documentation and portfolio sites. Each comes with demo content and is its own Composer package.

Layouts are built from Blade components like <x-cms::head>, <x-cms::menu>, <x-cms::languages> and <x-cms::image>, so a custom theme is mostly your own markup and CSS. php artisan cms:schema:check validates your own content element definitions.

All themes: https://pagible.com/themes

Upgrade

This is a breaking upgrade. The migration turns every existing page into the source variant of itself, but translations that were linked as separate pages in 0.13 stay separate, and you have to merge them yourself. The PHP API, GraphQL, MCP and JSON:API changed too. Everything is listed in the upgrade guide: https://pagible.com/upgrade-pagibleai-cms

  • GitHub: https://github.com/aimeos/pagible
  • Docs: https://pagible.com/documentation
  • Multilingual sites: https://pagible.com/multilingual-websites

If you like PagibleAI, give it a star on Github :-)