This is similar to the Dependency Injection concept. - Dependency Injection is an implementation technique for populating instance variables of a class. Typically passing dependencies via one of the following: A constructor, A public property or field, A public setter - Dependency Inversion is a general design guideline that recommends that classes should only have direct relationships with high-level abstractions. SOLID design principles Playlist ruclips.net/p/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH Support my work: 1. On BuyMeACoffee: www.buymeacoffee.com/qirolab 2. On Patreon: www.patreon.com/qirolab Also, follow us on: 𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: fb.com/qirolab 𝐓𝐰𝐢𝐭𝐭𝐞𝐫: twitter.com/qirolab
I love Laravel and spring boot because of IoC, have developed Android applications in the past but I got confused with dependency injection setup. In Laravel it is a cinch perhaps you could jog our minds on that Mr tutor, unfortunately have never heard say your name.
Hello,You have public function __construct(StripePaymentMethod $stripePaymentMethod) {$this->paymentMethod = $stripePaymentMethod} above this you have public $paymentMethod; Now we can use $this->paymentMethod in other functions. But In PHP 8, We can use it straight, $this->stripePaymentMethod without using the `$this->paymentMethod = $stripePaymentMethod` inside constructor and not needed `public $paymentMethod; ` too.
I finally understand Dependency Inversion Thank you QiroLab for making it very simple and straightforward.
Thank you! Cheers!
Hi, Thank you very much @QiroLab, You helped me crack the top end interview. Thank you for life....
Glad it helped!
@@QiroLab I had expected. you will replay.
For me the best way to learn concepts is by examples, and you nailed it so well like a charm. thank you bro
Thank you bro! This tutoarial is incredibly clear and well-presented! Keep share good content like this
Thank you! Cheers!
We look forward to the next videos. Thankful
Thanks for watching!
@@QiroLab your welcome
Loved the series.
Thank you so much ❤❤
Glad you like them!
This is similar to the Dependency Injection concept.
- Dependency Injection is an implementation technique for populating instance variables of a class. Typically passing dependencies via one of the following: A constructor, A public property or field, A public setter
- Dependency Inversion is a general design guideline that recommends that classes should only have direct relationships with high-level abstractions.
SOLID design principles Playlist
ruclips.net/p/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH
Support my work:
1. On BuyMeACoffee: www.buymeacoffee.com/qirolab
2. On Patreon: www.patreon.com/qirolab
Also, follow us on:
𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: fb.com/qirolab
𝐓𝐰𝐢𝐭𝐭𝐞𝐫: twitter.com/qirolab
Thank's a lot. This is similar to the Dependency Injection concept.
It was really nice and helpful please make next step playlist on strategy design pattern
Inside which folder structure in laravel should we implement this?
I love Laravel and spring boot because of IoC, have developed Android applications in the past but I got confused with dependency injection setup. In Laravel it is a cinch perhaps you could jog our minds on that Mr tutor, unfortunately have never heard say your name.
Thank you 🙌
Thank you very much
You are welcome
Please make videos on laravel package development
Noted, I am planning for that also.
@@QiroLab thanks sir
Awesome 👏🏾
Thank you 🙌
What is next playlist that is coming next
Not decided yet, may be the next series will be on PHP design patterns.
Thanks!
Thank you so much for your support.
Thanks but I wonder why this DIP is very similar to Open-Closed Principle.
Thank you! Cheers!
Hello,You have public function __construct(StripePaymentMethod $stripePaymentMethod) {$this->paymentMethod = $stripePaymentMethod} above this you have public $paymentMethod; Now we can use $this->paymentMethod in other functions. But In PHP 8, We can use it straight, $this->stripePaymentMethod without using the `$this->paymentMethod = $stripePaymentMethod` inside constructor and not needed `public $paymentMethod; ` too.