Refactoring Large Legacy Applications with Laravel
summary
Three concrete refactor paths with Laravel: pull only needed components via Composer (use illuminate/database with Capsule to run Eloquent alongside legacy PDO, add the validation stack and translations, and wire the event dispatcher), run a hybrid fallback routing setup to serve old PHP files side‑by‑side and migrate features gradually, or rebuild when maintenance time exceeds feature work. Demos show Composer installs, a custom Validator bootstrapping, event listeners, and measured Laravel response times around 70ms using validation events Eloquent.
AI-written summary · about
chapters (9)
- 0:00Introduction and speaker background
- 3:51Understanding legacy code in Laravel
- 8:52Refactoring with Laravel components
- 13:30Implementing event systems
- 18:06Hybrid refactoring approach
- 27:14When to rebuild from scratch
- 30:42Lessons learned from refactoring
- 33:29Summary of refactoring strategies
- 34:17Q&A session
