r/laravel • • 5h ago

Help Weekly /r/Laravel Help Thread

1 Upvotes

Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:

  • What steps have you taken so far?
  • What have you tried from the documentation?
  • Did you provide any error messages you are getting?
  • Are you able to provide instructions to replicate the issue?
  • Did you provide a code example?

    • Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.

For more immediate support, you can ask in the official Laravel Discord.

Thanks and welcome to the r/Laravel community!


r/laravel • • 7h ago

whereDate() quietly stopped my index from being used: 233 ms → 0.27 ms on 1.5M rows

Post image
58 Upvotes

I was profiling a "today's activity" counter on an audit-log table with 1.5 million rows (PostgreSQL 18, Laravel 13). I added an index on created_at and the query was still 233 ms.

The culprit was this:

Activity::whereDate('created_at', today())->count();

whereDate() wraps the column in date(), and a function around an indexed column means the planner can't use the index, so it falls back to a sequential scan of the whole table.

Rewriting it as a half-open range fixed it:

Activity::where('created_at', '>=', today())
    ->where('created_at', '<', today()->addDay())
    ->count();

Same result, 0.27 ms. The same applies to whereYear(), whereMonth() and whereTime().

Two other things I learned along the way:

  • Measure an index for searches that find nothing, not just common ones. A common word returned in 0.15 ms without a trigram index (the planner walks the date index and stops after 15 rows), but a typo that matched nothing read all 1.5M rows: 3,166 ms. With pg_trgm it was 0.34 ms.
  • CREATE INDEX CONCURRENTLY can't run inside a transaction, so the migration needs public $withinTransaction = false;.

Has anyone found a clean way to catch whereDate() on indexed columns before it reaches production?


r/laravel • • 11h ago

Prediction: any PR or attempt on improving Laravel PHP performance will be closed or answered with "Just use Laravel Rust/Go bro"

57 Upvotes

That's a hot take for sure but we have data to affirm that. In the last year a huge amount of PRs (even non vibecoded ones) were closed without explanation or with a generic response template. https://www.reddit.com/r/laravel/s/Qdxazt6hr9

Also, Taylor closed the issues section in almost all first party packages GitHub repos.

Edit: Even now Laravel Go and Laravel Rust have GitHub issues disabled https://www.reddit.com/r/laravel/s/wt59gGbUP6


r/laravel • • 17m ago

A performance improvement to Carbon landed

Thumbnail x.com
2 Upvotes

r/laravel • • 2h ago

Laravel.exe virus warning?

Post image
0 Upvotes

Using win11, I started to explore Laravel Rust. In the process, I had to upgrade to the latest laravel.exe version.

Everything works ok, but windows defender later issued a virus warning. I guess it’s a false positive because it’s a rust exe. I had a similar problem with go and frankenphp.

Still, getting virus warnings is disconcerting, so I’m wondering if anyone else has run into this.


r/laravel • • 1d ago Bravo

Laravel Rust is 18x faster at solving a problem you don't have

283 Upvotes

One of our developers once promised to rewrite a whole control panel in Filament in one month. Filament has great documentation, and it's part of the Laravel world we already knew. The new panel was still a disaster. The business almost collapsed before we pulled the plug and restored the old one.

I think about that story when I see the excitement around Laravel Rust.

I'm the author of Clean Code in Laravel. I've been a software engineer since 2006 and have worked with Laravel since 2016, in big teams, small teams and solo. My view: Rust or Go is overkill for most applications. There's a big difference between optimizing something and making a difference the user can feel. In most apps the slow part is the database and I/O, not the framework.

Look at Laravel's own benchmark. Laravel PHP served a steady 50 requests a second on one 4 GB instance. That's over 4 million requests a day. Very few of us ever see that much traffic.

Ask the people who want to move to Rust what speed their application really requires, and why. Most don't have an answer. They see "18x faster" and think it must be better.

And speed is not the whole picture. Laravel PHP has been around for ages. It's mature, and we know what to do when things go wrong. Laravel Rust is a brand-new beta in a completely different language, and it's unproven in production.

Yes, Rust saves on servers. And yes, almost everyone codes with AI now, so writing the code is cheap. But writing it was never the dangerous part. The dangerous part is running a serious application in a language you know nothing about. Don't tell me you'll give it to Claude and let it decide. When something goes wrong in production, someone on your team has to understand that code, at least the basics. If a rewrite in a tool from our own ecosystem almost killed a business, imagine a rewrite in a language nobody on your team knows.

Laravel Rust may be great for teams that already write Rust. For everyone else, PHP with OPcache, JIT and Octane is fast enough.

My guess is that Laravel Rust and Laravel Go are mostly marketing. They're aimed at new companies that have a bad opinion of PHP and would never choose it. That's a smart business move for Laravel, but it's not a reason for the rest of us to rewrite anything.


r/laravel • • 1d ago

GitHub issues disabled for Laravel Go and Rust.

Thumbnail
github.com
131 Upvotes

So I guess we now have to rely on AI agents completely to fix the framework bugs, or implement new features unless I'm missing something.

I know I'm one of the few people who still code majorly by hand for the joy of it, so at this point, I don't even know what to say, it's just sad.

GitHub issues are useful especially if you run into an issue and someone already posted it and found a solution, so I guess now we've got to rely on AI blindly. What a bummer.

End of an era, killed by the ones at the top huh...


r/laravel • • 4h ago

Computer for Laravel, Give your Agent a Computer.

Post image
0 Upvotes

It can be paired with Laravel Converse, it give your agent its own computer (or machine), you can manipulate a computer how you want, multi tenant, multi user, multi team, shared computer.

The providers you have:

- Bashbox, a sandbox from shipfastlabs/bashbox. It is a basic shell for your agent, written in pure PHP. Use it for scratch work, for tests, or as a safe default.

- Unkernel, real Linux (Alpine or Debian) in WebAssembly, from pithings/unkernel. It gives you isolated Linux on any machine.

- SSH connects to a server you already have, so your agent can work on an existing box.

- Docker gives one container per name, for isolated workspaces on your own hosts.

- Kubernetes gives one pod per name, for workspaces in your cluster.

- Fly.io gives one Fly Machine, for cloud workspaces that persist.

- DigitalOcean gives Droplet (a VPS).

- Daytona gives sandboxes. These are fast cloud sandboxes that start from an image or a snapshot.

- Sprites gives sandoxes on sprites.dev, for cloud workspaces that persist and sleep when idle.

I am open for feedback.

I am still thinking about working with Cloudflare Durable Objects Containers, let me know if you are interested or have some use case for it.


r/laravel • • 1d ago

Following up on Larust, with some benchmarks against Laravel Rust

34 Upvotes

I posted Larust here a couple of months ago, before Laravel announced their Rust port. I’ve kept working on it since then. I still like Laravel’s structure and Blade, and this has been my way of bringing the parts I enjoy into Rust.

For anyone who missed the original post, I’m a Laravel developer who also enjoys working with Rust. I started Larust because I wanted Laravel’s familiar structure, Blade-style templates, and tooling in a Rust application. I’d been working on it for months before Laravel announced their own Rust framework.

Now that Laravel Rust is available, I wanted to see how the two compared. I ran some basic SQLite tests against both, and I’m pretty happy with the results.

 LarustLaravel Rust
Read 101 posts (API)~80,875 req/s~3,025 req/s
Create a post337 req/s98 req/s
Create p99 latency158.3 ms5.18 s
Release binary15.1 MiB31.0 MiB

Both used release builds with matched optimization settings, trimmed dependency features, and the same machine. The load was 50 concurrent connections over 15-second runs.

The read result surprised me most, so I ran it a few more times to check. I expected good performance from Rust, but seeing Larust handle around 80,000 requests per second while reading from SQLite was encouraging.

What stood out more was the gap between the two frameworks: Larust managed roughly 27× the throughput of Laravel Rust in this test. It’s a narrow comparison, just a database read through each framework’s API router, without sessions, CSRF, or caching. I’d like to understand that gap better and see whether others can reproduce it.

I traced the write difference to SQLite connection handling. Larust uses a single dedicated SQLite writer connection. Laravel Rust’s configuration allowed concurrent writers, which hit database locking under this load. Larust had no errors; Laravel Rust recorded 14 HTTP 500s and 50 client timeouts.

These are short tests on one machine, and Laravel Rust was only a day into its public beta when I ran them. I’m pleased with how Larust did, but I wouldn’t take these numbers as a verdict on either framework overall. The results and reproduction details are in the repo README:

GitHub: https://github.com/WallabyDesigns/Larust
Website: https://larust.dev/
Docs: https://docs.larust.dev/

If anyone wants to try reproducing them or spots a problem with the setup, I’d appreciate your feedback.

---------------------

AI DISCLOSURE: AI was used for stress testing and documentation because I suck at documentation and stress testing/vulnerability testing makes sense.


r/laravel • • 5h ago

Laravel Go/Rust: Deployment is my biggest concern right now

0 Upvotes

I recently rewrote one of our internal monitoring tools to try out the new Laravel ecosystem (Yep, free weekend).

We used to run it on a ~$12/month VPS, but even with scale to zero, my estimated cost on Laravel Cloud is at least $30/month (because the scheduler has to frequently run every 5mins).

For me, the biggest issue right now is deployment. There's no native support in Laravel Forge, and Laravel Cloud seems to be the only official deployment option.

I'd love to see Forge support these frameworks so we can continue using our existing infrastructure.

Has anyone tried deploying Laravel Go or Rust to a regular VPS? What does your deployment workflow look like?


r/laravel • • 11h ago

Laravel for Rust keeps the names. Here are 10 places where the behaviour changes

0 Upvotes

I've been building a real blog on Laravel for Rust since the beta came out, and most of it feels like home. The trouble is the places where a familiar name does something a bit different, because those usually don't fail loudly.

A few from the list:

  • In a template, route("posts::show", post) can't see the model's route key and uses id, so the link 404s while the page test stays green.
  • No lazy loading. In Rust code a missing .with() stops with a clear message, but in a template the relation is just missing: the page renders without its tags and returns 200.
  • Jobs dispatched inside db::transaction wait for the commit by default. A cache forget on Redis doesn't, so db::after_commit is your friend there.

All ten, each with the fix: https://axvi.dev/blog/laravel-for-rust-same-names-different-behaviour

Curious which ones you've hit, or which I missed.


r/laravel • • 2d ago

Laravel Best Practices: Clean Code and Architecture

Thumbnail
codyssey.dev
40 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 • • 1d ago

NativePHP v4 Crash Course

Thumbnail
youtu.be
0 Upvotes

I made a NativePHP crash course where I’m going over the basic components along with building a simple UI login page.


r/laravel • • 2d ago

I built a shared pixel canvas with Laravel Rust

Post image
9 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 • • 3d ago

Laravel Go and Rust are not ready

149 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 • • 1d ago

Laravel Rust Packages: A Curated Preview

Thumbnail laraplugins.io
0 Upvotes

for Laraplugins I put up a directory of laravel rust crates that declares laravel rust support and would work nice with your projects


r/laravel • • 1d ago

Laravel Rust Debugbar

Post image
0 Upvotes

Hi, Laravel Rust is here, it only makes sense to have a Debugbar for it too.

Laravel Rust Debugbar, bring the familiar debugging experience to Laravel for Rust.

It helps you inspect requests, database queries, logs, exceptions, timelines, and more.

Still a work in progress, but feel free to check it out!

GitHub: https://github.com/eznix86/laravel-rust-debugbar


r/laravel • • 2d 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 [email protected]

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 [email protected] 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 :-)


r/laravel • • 4d ago

Laravel Cobol 0.x Release!

Post image
656 Upvotes

https://github.com/pihedy/laravel-cobol

First Rust, then Go. Why stop there?

Introducing Laravel for COBOL, an AI-first framework powered by enterprise technology from 1959.

With modern AI agents, you no longer need to understand COBOL. Or your application.

Benchmarks against PHP running on a €7 VPS are coming soon.

Ship confidently. Understand optionally.

/s


r/laravel • • 3d ago

FLEX Theme — a visual theme editor, enhanced search and keyboard workflows for Filament 5

Post image
9 Upvotes

Give your Laravel admin panel its own identity—and make everyday tasks easier to reach.
FLEX Theme combines a visual redesign with configurable workflow tools:

  • Visual theme editor: customize colors, fonts, branding, corners and layouts without writing CSS for each component.
  • Global Search with actions: find records, open edit forms and run authorized actions directly from the search window. Add custom commands, sources and nested contexts.
  • Keyboard controls: navigate table rows, select records, change pages and open filters with configurable shortcuts.
  • Interface details: stacked notifications, scheduled announcement bars, floating side panels and expandable bottom sheets.

Keep native Filament resources, forms, actions and permissions. Configure each panel independently, with selected settings controlled in PHP. Styling also works consistently with FLEX Fields.
Paid package. One-time payment, with one year of updates included.
Video, documentation and details:
https://filamentphp.com/plugins/bjanczak-flex-theme


r/laravel • • 4d ago

What’s Laravel’s strategy with Rust and Go?

Thumbnail
laravel.com
147 Upvotes

I just saw that they also released Laravel Go, a day after releasing Laravel Rust. I really struggle to understand the overall strategy from Laravel.

Looking at the commit histories and contributor graphs it looks like both are vibe coded by Taylor himself pretty much alone with his agents. That is really not what I’m looking for in a framework.

https://github.com/laravel/go/graphs/contributors

https://github.com/laravel/rust/graphs/contributors

With all the resources Laravel have I would have expected them to hire one of the best developers in their respective language and ecosystems to lead the development of such projects. Taylor could guide the API design and developer experience to make it feel like Laravel. His taste is a big part of the appeal with Laravel, but it also needs to be technical excellence under the hood of a good framework. You need to be able to trust that the implementation is sound and how can a PHP developer with AI do that? Focusing on the developer experience as main selling point also doesn't make sense if they are going all in on AI.

Unfortunately, this just looks very much like a slop fest where they are just launching things without much thought behind. Is it just an experiment to what the community things and see if it sticks?

I think making one of them would have been a reasonable bet, but one guy building two new frameworks from scratch in parallell just seems strange.

What are your takes? Can you see the strategy here?


r/laravel • • 3d ago

Comparing Laravel Go and Arkoren

Thumbnail
arkoren.dev
19 Upvotes

r/laravel • • 4d ago

Introducing Laravel for Holy-C (0.2.2-omega)

95 Upvotes

https://github.com/parablesoft/laravel-holyc

After the Go and Rust ports, it was clear the community wanted a Laravel without a garbage collector, a borrow checker, or user mode. So we ported it to HolyC and it runs in Ring 0 on TempleOS from the moment the machine boots.

Everything you know is here, with better names. Artisan is now Oracle, and every command replies with a random passage. Eloquent is Revelation ORM: models are revealed, not queried. Blade is Psalms and renders in the full 16-colour VGA palette. Composer is Covenant, and Covenant require is binding. Sanctum keeps its name, since it was already perfect.

One honest note on networking: TempleOS has no TCP/IP stack, so routing is resolved by divine intervention. Requests arrive when they are meant to, and response time is eternal. In our benchmarks this made HolyC the clear winner on spiritual throughput, with zero requests served.

Installation is two steps. Step 1: install TempleOS. Step 2: there is no step 2.

Repo, roadmap, and the "From Zero to Divine" series are in the link. Networking support is coming when it is revealed.

Unofficial parody by ParableSoft. Not affiliated with Laravel LLC.

/s


r/laravel • • 4d ago

Laravel Go is Here

Thumbnail
github.com
111 Upvotes