Skip to content
energyMEDIUM2026-05-05 05:02 UTC

Why I Stopped Using Raw SQL Date Functions and Switched to Carbon in Laravel

It Started With a Bug When I was building VMMS — a voucher management system MySQL. Clean queries. Fast results. Then I deployed to a server running MariaDB. Half my charts broke. I had written date queries like this all over the codebase: // This breaks on MariaDB DB::table('voucher_transactions

ADVERTISEMENT
⚡ STAY AHEAD

Events like this, convergence-verified across 689 sources, land in your inbox every Sunday. Free.

GET THE SUNDAY BRIEFING →

RELATED · energy