Laravel theorytheory 0/50 · 0%
Architecture · easy

17. Service Providers

Bootstrapping application services.

Service providers are the central place to configure and bootstrap the application, registering bindings, event listeners, and middleware. Every provider has a register() method for binding things into the container and a boot() method that runs after all providers are registered. Custom providers are registered in bootstrap/providers.php (Laravel 11+).

Check your understanding

  1. 1. Which method should only be used to bind things into the container?

  2. 2. Where are custom service providers registered in Laravel 11?