Laravel Glossary

Understand Service Containers and Service Providers

In the simplest terms, we could say that the service container in Laravel is a box that holds various components' bindings, and they are served as needed throughout the application.

In the words of the official Laravel documentation:

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

----------------------------------------------------------------

How Facades Work

In a Laravel application, a facade is a class that provides access to an object from the container.