Container Attributes in Laravel — Amit Merchant — A blog on PHP, JavaScript, and more
When you’re working with service classes in Laravel that you would inject into your controllers or anywhere else, you might need to pass some configuration values to them.