1.

What is dependency Injection in Laravel?

Answer»

The Laravel Service CONTAINER or IoC resolves all of the dependencies in all controllers. So we can type-hint any dependency in controller METHODS or constructors. The dependency in methods will be resolved and injected in the method, this INJECTION of resolved classes is CALLED dependency Injection.



Discussion

No Comment Found