Service providers are the central place of all Laravel application bootstrapping. Your own application, as well as all of Laravel’s core services are bootstrapped via service providers.
For more details:
https://laravel.com/docs/5.8/providers
Default usage of Service Provider is to inject variables to constructor of any class.
We can extend this usage, and inject variables conditionally according to environment variables or something else.