Translations: Korean (by Yongwoo Lee)
LaravelΒ has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentationΒ doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based onΒ Laravel 5.4.26 - other versions may vary.
I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to readΒ What is Dependency Injection? by Fabien Potencier (creator of theΒ SymfonyΒ framework).