mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
* Weekly thread #5 * Weekly thread #6 (before #5) * Weekly thread #5 * Correct the weekly thread created_at timestamps * Add actual created_at to Thread * Weekly thread #7 * Fix weekly thread #7 * Remove thread #8
16 lines
549 B
Markdown
16 lines
549 B
Markdown
---
|
||
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
|