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

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 34

  • @-cheshire-cat
    @-cheshire-cat Год назад +2

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

    • @QiroLab
      @QiroLab  10 месяцев назад

      Thank you! Cheers!

  • @sachinmohite217
    @sachinmohite217 4 месяца назад +2

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

    • @QiroLab
      @QiroLab  3 месяца назад +1

      Glad it helped!

    • @sachinmohite217
      @sachinmohite217 3 месяца назад

      @@QiroLab I had expected. you will replay.

  • @joshuaebhoria8046
    @joshuaebhoria8046 2 года назад +2

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

  • @happymalyo_
    @happymalyo_ Год назад

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

    • @QiroLab
      @QiroLab  10 месяцев назад

      Thank you! Cheers!

  • @behroozvalikhani9156
    @behroozvalikhani9156 2 года назад +1

    We look forward to the next videos. Thankful

  • @codewithsub5083
    @codewithsub5083 4 месяца назад

    Loved the series.
    Thank you so much ❤❤

    • @QiroLab
      @QiroLab  3 месяца назад

      Glad you like them!

  • @QiroLab
    @QiroLab  2 года назад +1

    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

  • @mddider9174
    @mddider9174 2 года назад

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

  • @Ehsankhan0577
    @Ehsankhan0577 2 года назад +1

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

  • @rohanshrestha8302
    @rohanshrestha8302 Год назад +1

    Inside which folder structure in laravel should we implement this?

  • @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 🙌

  • @muhammadumarsotvoldiev8768
    @muhammadumarsotvoldiev8768 9 месяцев назад

    Thank you very much

    • @QiroLab
      @QiroLab  9 месяцев назад

      You are welcome

  • @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 🙌

  • @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.

  • @free2idol1
    @free2idol1 Год назад

    Thanks!

    • @QiroLab
      @QiroLab  Год назад

      Thank you so much for your support.

  • @free2idol1
    @free2idol1 Год назад

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

    • @QiroLab
      @QiroLab  10 месяцев назад

      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.