Over the past few weeks, there has been some discussion about dependency injection, service location, and Laravel facades. So, I thought I would put together a quick video to demonstrate how Laravel supports both service locating facades and full-on, thorough dependency injection. In fact, not only does it support it, Laravel is one of the only full-stack frameworks that offers thorough IoC (even for controllers) out of the box. I also included basic unit tests. No facade calls in the entire application.
This is a great video and only 10 minutes long. I highly recommend watching it and possibly learn some new stuff.
Filed in: Laravel
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- Full-Stack Developer
Nu Image Medical
- Senior Software Developer
Remote (US ONLY)/Kenilworth, NJ
- Senior Back-end Laravel API Developer - Immediate Contract (Full Time)
ApproveMe // Document Signing
- Web Development Project Manager
- Experienced Laravel/VueJS Developer (Freelance)
Remote (preferably in the US)
- Senior React / Laravel Developer
The C.A.S.E. Engineering Group
- Software Engineer