r/laravel

▲ 196 r/laravel+3 crossposts

PHPStan 2.3: Leap in Performance, Generics Improvements, Detecting Unused Variables, and More!

PHPStan 2.3: Leap in Performance, Generics Improvements, Detecting Unused Variables, and More!

I had so much fun with the interactive charts and widgets, check out the article. I promise it's worth checking it out yourself, and not just letting your agent summarize it for you 😉 It contains a lot of interactive widgets with practical examples of the new features in action.

phpstan.org
u/OndrejMirtes — 9 days ago
▲ 45 r/laravel

Which Programming Language Can Handle the Most Users on a $12 Server?

What do you think the main contributing factors were to Laravel's score? What would you do to improve it?

youtube.com
u/GregKos — 10 days ago

Any recommended AI skills?

Hey guys, what AI skills do you frequently use and recommend?
I’m using Matt Pocock’s skills currently to create the plan, specs, implementation tickets and also for implementation.
But what I’m missing are some review skills for the plans, specs and issues it generates. I usually ask the agent to review the plan for inconsistency, errors etc. The specs are reviewed against the plan, because I noticed sometimes the agents drift a bit or is leaving things out.
I’m also trying to find/create a good code review skill that should verify the implementation, catch bugs, inconsistency, code styling, DRY and SOLID violations… you know, usual stuff when you perform a manual code review.

English is not my native language and sometimes I struggle to clearly formulate my prompt. That’s why I rely heavily on skills written by smarter people :)

So my question is do you use any particular skills that helps you developing PHP & Laravel apps, end to end, through the entire software lifecycle? From planning to deployment? Or do you have any specific workflow?

Thanks!

reddit.com
u/radu_c1987 — 8 days ago

I built a Filament filter that filters tables by a sentence: "The customer is angry."

Hi r/laravel! I've been building Laravel apps for many years, and lately I've been working with AI models inside admin panels. This is the result: Vibefilter, a free, MIT-licensed Filament plugin.

You add it to a table:

VibeFilter::make()->textColumns(['body'])

then type a statement like "The customer is angry." and the table keeps the rows it's true for. It's for questions you'd otherwise need a classifier, embeddings or a keyword list for: sarcasm, negation, "the customer blames the courier".

A few details you may care about:

  • Only the rows left after your other filters and search are scored, then the table is filtered by key, so pagination, counts and sorting stay correct.
  • Scores are cached by content (text hash + statement + model). Re-running a statement is instant and free.
  • 1,000 rows take about 1 second and cost about $0.003 with TypeSafe's Jev, directly or through OpenRouter.
  • A "Run anyway" guard above 1,000 unscored rows, a live progress bar via Livewire streaming, and a fake driver for your tests.
  • Only the chosen columns are sent, under random tags, never with IDs.

Live demo (1,000 fictional reviews, no sign-up): https://demo.vibefilter.dev GitHub: https://github.com/vibefilter/filament

Happy to answer anything. I'd also love to hear where you'd use it, or what's missing.

reddit.com
u/OldCitron4036 — 9 days ago

I built Agentic Actions for Laravel: write an operation once, and your forms, Artisan, queues, AI agents and MCP clients all call it

For the past few weeks I've been building a package around one idea: an operation should be written once.

You write it as an Action class. The same class then answers a web route (JSON and forms, with Precognition), an Artisan command, a queued job, a typed TypeScript function, a laravel/ai agent (a copilot in your app), and MCP clients like Claude.

#[Expose]
final class CreatePost extends Action
{
    protected ?Effect $effect = Effect::Write;
    public function schema(JsonSchema $schema): array { /* … */ }
    public function authorize(ActionContext $context): bool { /* … */ }
    public function handle(ActionContext $context, ValidatedInput $input): array { /* … */ }
}

Every caller goes through the same pipeline: exposure, token abilities, tenant membership, `authorize()`, validation, `handle()`, and an allowlist on the output. So the AI can't do anything your form wouldn't allow, and you don't keep a separate pile of agent-only tools that drift from your real validation.

The idea comes from Agent-Native by Builder.io, where one `defineAction()` serves the UI, the agent, HTTP, MCP and the CLI. This brings that to Laravel, built on laravel/ai and laravel/mcp.

It's in beta (0.9), MIT licensed, and the API can still change before 1.0.

I'd really like feedback: what breaks, what's missing, and whether this fits how you build Laravel apps.

u/Hussam3bd — 8 days ago
▲ 38 r/laravel

Scramble (OpenAPI generator for Laravel) now has Laravel Boost integration — it will guide agents to keep your code as the source of truth

Hey Laravel community!

Scramble is an OpenAPI generator for Laravel that doesn't require manual annotations.

I waited before implementing Boost integration because I didn't see a point in restating what was already available in the documentation. But after trying Scramble with agents myself, I was confused: agents overused manual attributes and, worse of all, overrode type information that Scramble was able to infer from the codebase automatically.

This makes your attributes and annotations a source of truth that you need to maintain alongside your code — the exact problem Scramble exists to solve!

Laravel Boost integration guides agents to keep your code as the source of truth, and improved CLI commands reduce tokens usage when agents verifying the generated documentation. As a result, agents become much more useful and work toward producing accurate OpenAPI documentation that actually describes the API contract.

The details are in the blog post.

Let me know what you think!

scramble.dedoc.co
u/RomaLytvynenko — 10 days ago
▲ 11 r/laravel

Vellum: a fumadocs inspired markdown docs framework for laravel

I have always missed a well and modern designed fumadocs alternative for laravel. So here it is. It is currently still in development with features such as OpenApi support, blog support and more on the way toward v1. Hope this is usefull to anyone.

vellum.jimmyverburgt.com
u/PatientAd3288 — 9 days ago
▲ 39 r/laravel+1 crossposts

Self-hosted session replay for Laravel (with a Filament plugin): would you use it?

Hi all!

Here's a session replay package for Laravel that runs entirely in your app: recordings stay on your own disk and database, no external service.

The player shows the mouse trail and clicks, with page views, failed Livewire requests, rage clicks and JS errors on one timeline (there's a Filament plugin too, shown in the video). Inputs are masked by default.

I'd like your feedback :) ... before v1.0.

Would you use this, or would you rather use a hosted service?

Edit: it's now public as a beta, thanks for all the interest!
Laravel package: https://github.com/packstub/session-replay
Filament plugin: https://github.com/packstub/filament-session-replay

u/packstub-dev — 13 days ago