Forum Laravel Di outside of controller?
Documentation is not clear about whether automatic dependency injection works outside of controllers, jobs etc. Does it works in regular classes?
So far I notices that constructor DI is working, but method is not working.
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!
Get Started
Di outside of controller?
Documentation is not clear about whether automatic dependency injection works outside of controllers, jobs etc. Does it works in regular classes?
So far I notices that constructor DI is working, but method is not working.