Browse all series
TechniquesAdvanced10 episodes

Debugging Real-World Production Nightmares

Production bugs don't announce themselves politely. In this series, we confront ten nightmare scenarios using NightmareMart, an intentionally broken e-commerce app, demonstrating how to debug calmly and methodically when everything is on fire.

Series episodes

The "Works on My Machine" Disaster

9m 32s

Stop 'works on my machine' disasters: find and fix env() misuse with config caching to prevent production 500s and deployment surprises.

Death By N+1 Queries

16m 1s

Speed up slow Laravel admin pages: use Debugbar to uncover N+1 queries in Blade and fix them with smart eager loading for fast, reliable queries.

The Authorization Hole Nobody Noticed

10m 2s

Find and fix an unnoticed auth gap that lets users trigger admin refunds: audit routes, add middleware, and enforce policies to secure payments.

Atomic or Die (Or At Least Oversell)

17m 46s

Reproduce overselling race conditions with concurrent requests, then fix them using database locks and atomic operations to guarantee safe orders.

The Case of the Phantom Cart

8m 37s

Fix phantom carts by tracing unscoped cache keys, learn when personalized data must never be cached to protect user totals.

The Memory Leak That Killed the Worker

9m 6s

Stop worker crashes during batch jobs by profiling memory, finding Eloquent buildup, and fixing it with chunking and cleanup.

The Timezone Nightmare

8m 30s

Fix order date confusion caused by mixed timezones: store UTC, display local, and align server, DB, and user clocks.

The Log File Massacre

10m 3s

Prevent 500 errors from full disks: find runaway debug logs, implement log rotation, and adopt safe logging practices.

One Search Query. Say Goodnight.

8m 4s

Protect your database from costly search scans: reject tiny queries, add limit and paginate, and cache results per search and page.

The Silent Money Bug (From Mars)

12m 10s

Learn to fix mismatched order totals: uncover rounding bugs and rebuild consistent, testable calculations with a custom value object in Laravel.

Continue learning

Thumbnail for Laravel Security Through Examples
Laravel Security Through Examples

With Stephen Rees-Carter

  • 12 episodes
  • Intermediate
  • Techniques
Thumbnail for Modular Laravel
Modular Laravel

With Mateus Guimarães

  • 25 episodes
  • Advanced
  • Techniques
Thumbnail for Long-form Refactoring Workshops
Long-form Refactoring Workshops

With Jeffrey Way

  • 2 episodes
  • Intermediate
  • Techniques
Thumbnail for Jeffrey's Larabits
Jeffrey's Larabits

With Jeffrey Way

  • 52 episodes
  • Intermediate
  • Techniques
Thumbnail for Write Code That's Easy to Maintain
Write Code That's Easy to Maintain

With Katerina Trajchevska

  • 14 episodes
  • Advanced
  • Techniques

Would you like to hear from Laracasts by email occasionally?