What do you know about service providers?

Technology CommunityCategory: LaravelWhat do you know about service providers?
VietMX Staff asked 1 year ago

Service providers are the central place to configure your application. Your own application, as well as all of Laravel’s core services are bootstrapped via service providers. Bootstrapping means registering things, including registering service container bindings, event listeners, middleware, and even routes.

If the service container is something that allows you to define bindings and inject dependencies, then the service provider is the place where it happens.