r/laravel

The Laravel team needs to get better at relaying CVE information for its core dependencies.
▲ 44 r/laravel

The Laravel team needs to get better at relaying CVE information for its core dependencies.

Even though today's Symfony CVE announcements aren't directly Laravel's responsibility, it's a bit disappointing that there's absolutely no news coming from the Laravel team about it.

Especially right now, it's hard to explain to non-technical leaders why they should trust Laravel when there's no news shared with those leaders in mind. They are not checking Github security advisories. They see the headlines and notice Laravel's absence. That's it.

There should be clearer lines of communication for CVEs that affect Laravel. laravel.com/blog should be more than just marketing.

u/dergadoodle — 1 day ago
▲ 10 r/laravel

How do you structure service classes in larger Laravel projects?

I’ve worked on a few Laravel projects where controllers became too heavy over time, especially when the app had payments, notifications, reports, third-party APIs, and admin workflows.

Recently I’ve been trying to keep controllers very thin and move business logic into service classes.

Example structure:

app/

Services/

Payments/

Notifications/

Reports/

Tenants/

Actions/

DTOs/

For simple CRUD, I still keep things straightforward. But for complex workflows, I feel service classes make the code easier to test and maintain.

Curious how others here usually structure larger Laravel apps.

Do you prefer service classes, actions, jobs, repositories, or just keeping logic closer to models/controllers?

reddit.com
u/aliRazaLilani — 1 day ago

Fully Automated Laravel Upgrades with Shift + AI

A quick demo of AI skills and commands that automate the entire Shift process right from your prompt - providing the most thorough, automated Laravel upgrade.

Follow the Shift AI README to install these skills and commands.

u/mccreaja — 3 days ago
▲ 310 r/laravel

One of my first ever PRs merged to Laravel Breeze! I have contributed to the framework I've been using for years, I'm so happy!

It's 4 lines if you count one empty line. Not to brag 😏

Link

u/DevKemal_ — 4 days ago
▲ 10 r/laravel

Local Laravel with nix and devenv

Howdy r/laravel!

I've been playing around with nix recently and figured I'd write a bit about what I've been doing with it lately, specifically around how I've swapped to a nix/devenv setup from Herd. Really enjoying this workflow and hope it helps other folks out there tinkering with nix and looking to fine tune it for Laravel development.

Cheers!

joeymckenzie.tech
u/the_beercoder — 2 days ago
▲ 10 r/laravel

Laravel Cloud Office Hours (5/19): Managed Queues + Q&A

We're doing another Laravel Cloud Office Hours stream tomorrow (5/19) at 12pm EDT (4pm UTC) with Devon. This time, we have a special guest, Andy Brudtkuhl, one of our Product Managers for Cloud, joining us to talk about managed queues!

Feel free to drop any Cloud questions in the comments ahead of time, into Slido, or ask them live in chat during the stream.

Submit a question: → https://app.sli.do/event/vbaBss7fHASowVDsu7LbHk

YouTube stream: → https://www.youtube.com/watch?v=FmONCjszaDc

reddit.com
u/leahtcodes — 3 days ago

Working on a package to "Data Stress" Laravel app - need opinions

Hello guys,

I have a package idea. Released a YouTube video (8 minutes) explaining it, so you can watch here: https://www.youtube.com/watch?v=o29iXqgRFNU

But I will summarize.

Idea: you're working on a Laravel project and you want to test it with large data BEFORE releasing it to production. Yes, you can generate some seeders but wouldn't it be more convenient to make it flexible and convenient to perform such stress test?

So, the workflow of the UI (proof of concept):

  1. You choose the Route and its parameters

  2. Package detects which DB tables are involved in that specific routes. Then you specify how many records in those tables you want to seed.

  3. Package performs the seeding and then loads your chosen route multiple times and provides the data for page load, queries avg/total, etc.

https://preview.redd.it/syso628q8w1h1.png?width=2220&format=png&auto=webp&s=808243559f7d3686cc8662f1e92682bfcb754ea4

https://preview.redd.it/dkjdz18q8w1h1.png?width=2224&format=png&auto=webp&s=a786b7c040b5de6262468f771d13d0d99f779eff

For now, it's a very early stage, nothing released yes, all local on my machine.

But my overall question, I guess, is, would you use such package?

In other words, is it worth spending more time in polishing all the (edge) cases and UI/UX, which, as you all know, is actually 90% of the work lol.

---

Also, that probably would be a freemium package, so some features would be in a paid Pro version, to sustain my time on the tool. Still early to decide which ones, but just want to manage the expectations.

reddit.com
u/PovilasKorop — 4 days ago

I built a package where your view tells Chrome when it's actually ready instead of praying that my PDF renders inside the delay(2000) timespan

Every HTML-to-PDF setup I've shipped had the same bug: Chrome captured the page before it was actually done. Chart.js still animating. Custom font not loaded yet. Async data not back. The "fixes" were always waitUntilNetworkIdle + delay(2000) + prayer, and it always eventually flaked on a queue worker.

So I built Canio. Your Blade view sets:

window.__CANIO_READY__ = true;

...when it's genuinely ready (fonts.ready, chart onComplete, fetch done, whatever you decide). Canio waits for that. No timing heuristics.

The part I'm actually proud of: every render can persist an artifact bundle, HTML source, DOM snapshot, screenshot, console log, network log. So when someone says "the invoice from 3 days ago looked wrong", you open the screenshot artifact and see exactly what Chrome saw. PDF debugging stops being a guess.

It's MIT, runs on a Go runtime over CDP, supports Laravel 10-13.

Repo: https://github.com/oxhq/canio

Demo: https://youtu.be/Cg9OAi0dBtQ

Not trying to replace Browsershot, it's great and I still use it. Canio is for the cases where capture timing and render debuggability actually matter. Happy to answer anything technical.

u/Garaekz — 3 days ago
▲ 36 r/laravel

Laravel DB TUI

https://github.com/myneid/laravel-db-tui

I whipped this up to suit my workflow only. But maybe there are other console jockeys like me.

I got tired of switching to table plus for lots of small things, but i like the quick interface of table plus. also sometimes i was remote and just wanted to use my terminal for everything.

maybe someone else will enjoy this

u/myneid — 8 days ago
▲ 0 r/laravel+1 crossposts

Am I The Only One Who Didn’t Know This

Just found out Laravel artisan commands are written in PHP. For some reason I thought it was another language that’s used to make those terminal commands. Apparently it’s PHP CLI and you can make CLI apps with just PHP. Never knew it.

reddit.com
u/Temporary_Practice_2 — 9 days ago

Built a multi-department Voucher Management System with Laravel 12 + Vue 3 — here's how I approached the workflow routing

I've been working on a system called VMMS (Voucher Management & Monitoring System) designed for government offices and companies that still manage document approvals through Excel and email chains.

I wanted to share how I approached a few interesting technical challenges in case it helps anyone building something similar.

Workflow Routing The trickiest part was making the multi-department routing flexible. Each department has a different approval flow, and I needed vouchers to move automatically to the next department once approved. I handled this by building a pipeline system where each voucher has a current stage, and the next stage is determined by the department configuration — not hardcoded logic. This made it easy to add or reorder departments without touching the core routing code.

Role-Based Access I used Laravel's Gate and Policies to handle three separate panels — Admin, Staff, and Client. Each role only sees what's relevant to them. Keeping the authorization logic in Policies rather than controllers kept things clean as the system grew.

Real-Time Pipeline Tracker I used Laravel Events and Listeners to trigger updates whenever a voucher moved stages, which also powered the automated email notifications at each step.

Staff Performance Leaderboard This was actually a last-minute addition but turned out to be one of the most appreciated features — just a simple query aggregating completed vouchers per staff member per period.

Live demo if anyone wants to see it in action: https://vmms-app-production.up.railway.app/login

Happy to answer any questions about the architecture or implementation decisions!

reddit.com
u/ChrisL0713 — 8 days ago
▲ 13 r/laravel

Live walkthrough: laravel.com Migration to React + Inertia with Chip Needham

The laravel.com site was recently migrated from Blade and Alpine.js to React and Inertia.

Tomorrow (5/14) at 2pm EDT (6pm UTC), I'm going live with Chip Needham for a walkthrough of how the migration came together, which Inertia v3 features made it possible, and a real look at how the team at Laravel is using AI internally.

Feel free to drop any questions here, or ask them live during the stream!

YouTube stream: → https://www.youtube.com/watch?v=nEGYkXW3xHg

u/leahtcodes — 8 days ago