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/specify-container-bindings-using-the-bindings-array.md
2022-02-17 17:15:09 +01:00

16 lines
549 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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