Ever wondered if PHP 8.5's pipe operator is actually worth the hype?
I was skeptical too. It looked weird at first, but I tested it in real Laravel projects and ran benchmarks.
Turns out, it's great for simple function chains like string cleanup, but gets messy with complex logic. Saw a 20-45% slowdown, though that's usually not a dealbreaker.
My take? Don't rewrite working code just for pipes. Use it if your team vibes with functional programming, otherwise stick with the classics.
Full breakdown with benchmarks in the article!
dev.to/tegos/php-85-pipe-operator-is-it-worth-using-4gig
Ever watched your staging server just die? Mine did. Both CPUs at 100%, memory maxed, totally frozen.
The culprit? Laravel's scheduler running heavy jobs from production. Price exports, syncs, data crunches just hammering a tiny 2 vCPU droplet.
The fix: split your schedule() by environment. Run heavy jobs once daily on staging instead of hourly. Keep only essentials.
Result? CPU dropped from 100% to 20%. Staging responsive, production untouched.
Don't copy production schedules blindly.
dev.to/tegos/dont-let-your-staging-server-die-separate-task-scheduling-in-laravel-420o
Ever inherited a production app still chilling on Ubuntu 20.04 in late 2025? 😅 Yeah, me neither... until last week.
Direct jump to 24.04 LTS? Nope, Ubuntu says no. Security updates long gone, heart racing every time I ssh in.
The trick: snapshots + temp droplet + step-by-step upgrade path (20.04 → 22.10 → 23.04 → 23.10 → 24.04 + Nginx 1.28).
Takes about an hour, mostly waiting for reboots and downloading packages. App never blinked.
If you're stuck on ancient Ubuntu, this method works. Full commands and details here: dev.to/tegos/from-20-to-24-lts-safe-way-to-upgrade-ubuntu-on-digitalocean-4gb
Who's still running 20.04 in production? Be honest 👀
Ever assumed Laravel's after() method runs after validation passes?
Plot twist: it runs after validation completes - even when it fails 😅
Found this out when DB queries were hitting on invalid requests. Worse - got 500 errors when callbacks tried processing bad data.
Quick fix? Check if validator has errors first and bail early.
But real talk - DB queries don't belong in Form Requests. Keep validation fast, move heavy stuff to services.
dev.to/tegos/laravel-validation-after-after-what-exactly-28fa
🔧 Fixed Laravel Bug (and Got My PR Merged!)
Tried to delete 500 rows with batch... Laravel deleted 500,000+ at once 😅
Turns out, DELETE queries with JOIN + LIMIT/ORDER BY were dropping those clauses - wiping out way more than intended.
I patched it so Laravel now keeps the full query and lets MySQL handle errors properly.
Merged into Laravel 13.x 🎉
✅ No more silent mass deletions
🙌 Open source wins again
dev.to/tegos/battling-laravels-sneaky-deletes-how-i-got-order-by-and-limit-to-play-nice-with-joins-ng9