Laravel – Service Containers

Service container is used to resolve an instance of a class thereby making dependency injection possible. It’s a way to abstract your app services so they can be easily swapped out for a different implementation. First you bind it to the service container: So, by binding a class into the service container, we can do […]