Service provider and service container in laravel.


The Laravel service container is a powerful tool for managing class
dependencies and performing dependency injection.

Dependency injection is a fancy phrase that essentially means this: class dependencies are  "injected" into the class via the constructor or, in some cases,
"setter" methods.

Service Providers: Service providers are the central place of all Laravel application bootstrapping.  Your own application, as well as all of Laravel's core services, are bootstrapped via service providers.