Hey, my book is finally available. Find it here.  Eloquent Beyond The Basics!

🔥 Laravel Tip: Dependency injection without any configuration

Apr 15, 2022

You can type-hint a class and Laravel will automatically inject an instance of that class.

Without any configuration.

This only works if the class has no dependencies, or it only depends on other concrete classes.
tip-image-0