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

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

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

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

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

    Inside which folder structure in laravel should we implement this?

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

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

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

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

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

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

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

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

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

      Thank you! Cheers!

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

    Loved the series.
    Thank you so much ❤❤

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

      Glad you like them!

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

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

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

    We look forward to the next videos. Thankful

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

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

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

    Thanks!

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

      Thank you so much for your support.

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