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.

Related questions

0 votes
asked Jan 30 in Dot Net by GeorgeBell
0 votes
asked Dec 13, 2020 in Angular by SakshiSharma
...