0 votes
in Laravel by
What is dependency Injection in Laravel?

1 Answer

0 votes
by

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.

...