The usage of the service container is for performing dependency injection in laravel.