Laravel's container can be used for resolving variadic dependencies

Laravel's container can be used for resolving variadic dependencies

Since @laravelphp 8.79 it is possible to resolve variadic dependencies out of the IoC container.

This is quite useful for type-hinting and static analysis and allows us to bind a set of concrete implementations to an abstraction layer.

#Laravel #PHP

We're writing a book, you can get it for free here.