1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/laravels-container-can-be-used-for-resolving-variadic-dependencies.md
lukinovec e907eba3dd
Weekly thread #4 (#26)
* Use Author::updateOrCreate instead of firstOrCreate

* Weekly tips #4
2022-01-28 18:03:12 +01:00

606 B

title tweet_id thread_slug author_username images created_at slug
Laravel's container can be used for resolving variadic dependencies 1487081929123897344 weekly-thread-2022-04 cerbero90
https://pbs.twimg.com/media/FJ7_971aUAoMZF5.png
2022-01-28T15:15:35+00:00 laravels-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