1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/specify-container-bindings-using-the-bindings-array.md
2022-02-17 17:15:09 +01:00

549 B
Raw Blame History

title tweet_id thread_slug author_username images created_at slug
Specify container bindings using the $bindings array 1494019548374126594 weekly-thread-2022-06 freekmurze
https://pbs.twimg.com/media/FLKZmOCWYAAq9Hd.jpg
2022-02-16T18:43:12+00:00 specify-container-bindings-using-the-bindings-array

🔥 Cool tidbit I learned during @LukeDowning19 s talk.

You can add a $bindings array to a service provider to bind things.

https://laravel.com/docs/9.x/providers#the-bindings-and-singletons-properties #laravel #php