Laravel's container can be used for resolving variadic dependencies
- ·
- Telegram
- ·
- Newsletter
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