Full IoC & Unit Testing With Laravel

Written by Taylor Otwell / Original link on Jan. 16, 2014

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.

Enjoy and be sure to watch in 1080p HD!


taylorotwell 15

« Interop & Common Names - Response: Don’t Use Facades »