Post by Matthew Alabi (@Mmt)
Laravella!!!
Here are 7 things that only break in production:
1️⃣ env() outside config: returns null after config:cache
2️⃣ Lazy loading: N+1 got promoted → Model::shouldBeStrict() outside prod
3️⃣ Jobs that aren't idempotent: retries charge the card twice
4️⃣ Missing database indexes: the query takes 4 seconds, the index is on holiday
5️⃣ Telescope left on in prod: a free memory leak with a nice UI
6️⃣ Cache stampedes: one key expires, 1,000 users recompute it → Cache::lock()
7️⃣ Skipping php artisan optimize in your deploy script
None of these show up on localhost with 12 rows and one user. That's what makes them hard.
Pro tip: turn strict mode on in local and staging so Laravel complains early, not your client. 🔥
What's your cursed prod story? 👇
#Laravel #PHP #BackendDevelopment #DevOps #SoftwareEngineering #DevHumor #WebDevelopment

0 likes · 0 comments · 0 shares