Coming for a JavaScript and Java background, I find dependency injection in Laravel (or PHP) extremely confusing.
For example (Laravel 5.1), in Middleware/Authenticate the constructor takes a Guard object. I have search the codebase and the class Authenticate is never instantiated.
So where is the Guard coming from then?
Thanks, SK.