Laravel 5.0 - Method Injection
Read OriginalThis article details the new method injection feature in Laravel 5.0, which allows the framework's IoC Container to resolve dependencies injected directly into methods, not just constructors. It contrasts this with constructor injection, explains the benefits for reducing constructor clutter, and provides code examples, with a focus on its common use in controllers.
Comments
No comments yet
Be the first to share your thoughts!
Top of the Week
No top articles yet