Join 25,000+ Laravel Developers and join the free Laravel Newsletter
Laravel / January 16, 2014

Full IoC & Unit Testing With Laravel | Taylor Otwell

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.

This appeared first on Laravel News
Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.