Customizing Laravel
summary
Shows how to extend Laravel by building a package that injects concrete failures: an 3% lottery decides when to act, it adds a random 1–3s DB sleep, replaces compiled Blade conditionals to mis-evaluate every 100th request, swaps the logger for a quiet logging driver that drops messages, randomly logs out users, strips CSS via middleware and returns error pages by reusing the exception handler; uses service providers, managers and container resolving so extensions run lazily.
AI-written summary · about
chapters (5)
- 0:00Start
- 11:14Never rely on the order of service providers!
- 11:46boot(): Configure and connect services
- 20:11Managers Drivers & adapters
- 41:24Don't trust third-party dependencies.








