#5: Dependency inversion principle (DIP) in PHP, Laravel | SOLID Design Principles

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 35

  • @joshuaebhoria8046
    @joshuaebhoria8046 2 ปีที่แล้ว +1

    For me the best way to learn concepts is by examples, and you nailed it so well like a charm. thank you bro

  • @-cheshire-cat
    @-cheshire-cat ปีที่แล้ว

    I finally understand Dependency Inversion Thank you QiroLab for making it very simple and straightforward.

    • @QiroLab
      @QiroLab  8 หลายเดือนก่อน

      Thank you! Cheers!

  • @rohanshrestha8302
    @rohanshrestha8302 ปีที่แล้ว +1

    Inside which folder structure in laravel should we implement this?

  • @QiroLab
    @QiroLab  2 ปีที่แล้ว +2

    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
    th-cam.com/play/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH.html
    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

  • @behroozvalikhani9156
    @behroozvalikhani9156 2 ปีที่แล้ว +1

    We look forward to the next videos. Thankful

  • @Ehsankhan0577
    @Ehsankhan0577 2 ปีที่แล้ว +1

    It was really nice and helpful please make next step playlist on strategy design pattern

  • @mddider9174
    @mddider9174 2 ปีที่แล้ว

    Thank's a lot. This is similar to the Dependency Injection concept.

  • @muhammadumarsotvoldiev8768
    @muhammadumarsotvoldiev8768 8 หลายเดือนก่อน

    Thank you very much

    • @QiroLab
      @QiroLab  8 หลายเดือนก่อน

      You are welcome

  • @free2idol1
    @free2idol1 ปีที่แล้ว

    Thanks but I wonder why this DIP is very similar to Open-Closed Principle.

    • @QiroLab
      @QiroLab  8 หลายเดือนก่อน

      Thank you! Cheers!

  • @LotusSoftPvtLtd
    @LotusSoftPvtLtd ปีที่แล้ว

    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.

  • @free2idol1
    @free2idol1 ปีที่แล้ว

    Thanks!

    • @QiroLab
      @QiroLab  ปีที่แล้ว

      Thank you so much for your support.

  • @Ehsankhan0577
    @Ehsankhan0577 2 ปีที่แล้ว

    What is next playlist that is coming next

    • @QiroLab
      @QiroLab  2 ปีที่แล้ว

      Not decided yet, may be the next series will be on PHP design patterns.

  • @sachinmohite217
    @sachinmohite217 3 หลายเดือนก่อน +1

    Hi, Thank you very much @QiroLab, You helped me crack the top end interview. Thank you for life....

    • @QiroLab
      @QiroLab  2 หลายเดือนก่อน +1

      Glad it helped!

    • @sachinmohite217
      @sachinmohite217 2 หลายเดือนก่อน

      @@QiroLab I had expected. you will replay.

  • @ahmedyoussef7968
    @ahmedyoussef7968 ปีที่แล้ว +1

    Thanks a lot 😍
    Now, we could say that SOLID principles are one unit depend on each other, I mean when we need to using SOLID should using all of them in the right way.
    It is not right to use one or two of them and overlook the other principles.

  • @azengakevin2310
    @azengakevin2310 2 ปีที่แล้ว +2

    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.

    • @QiroLab
      @QiroLab  2 ปีที่แล้ว

      Thank you 🙌

  • @codewithsub5083
    @codewithsub5083 2 หลายเดือนก่อน

    Loved the series.
    Thank you so much ❤❤

    • @QiroLab
      @QiroLab  2 หลายเดือนก่อน

      Glad you like them!

  • @happymalyo_
    @happymalyo_ ปีที่แล้ว

    Thank you bro! This tutoarial is incredibly clear and well-presented! Keep share good content like this

    • @QiroLab
      @QiroLab  8 หลายเดือนก่อน

      Thank you! Cheers!

  • @arshahin9803
    @arshahin9803 2 ปีที่แล้ว

    Please make videos on laravel package development

    • @QiroLab
      @QiroLab  2 ปีที่แล้ว +1

      Noted, I am planning for that also.

    • @arshahin9803
      @arshahin9803 2 ปีที่แล้ว

      @@QiroLab thanks sir

  • @JeVaughnFerguson
    @JeVaughnFerguson 2 ปีที่แล้ว

    Awesome 👏🏾

    • @QiroLab
      @QiroLab  2 ปีที่แล้ว

      Thank you 🙌