#2: Open-Closed Principle (OCP) in PHP, Laravel | SOLID Design Principles

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

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

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

    SOLID design principles Playlist
    ruclips.net/p/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH
    ⌚ Timestamps:
    00:00 Introduction / Definition
    01:48 Example 1
    19:00 Example 2
    25:25 Example 3
    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

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

      I believe all you need do after setting up your files the way he did here, is implement what he did in the web route closure in your controller, then simply call the controller class and function in the web route with no closure this time.

  • @sirajul-anik
    @sirajul-anik Год назад +1

    IMO sales reports should not know how you want to export the data, thus the export method doesn't make sense to me in the report class. rather the exporter classes with sales data made sense.

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

    perfect videos ! Just one single note here to mention that your SalesReport Class still violates SRP , cause your export method shoulnt be inside of that class, because the responsibility of that class should only be the query.

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

    Nice tutorial. The multiple payment gateway is really nice. I just wanted to ask if i want to dynamically select the payment gateway to use based on post request received from the frontend do I have still need to fall back to if else statements on my controller?

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

      I think you can make those statements on a "Service Class". Controllers are meant to treat the requests, only. That's just my opinion, ofc :)

  • @AnilChudasama-u4k
    @AnilChudasama-u4k Год назад

    Its tooooooo helpfull bhai. thanks

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

      Thank you! Cheers!

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

    Nice explanation 👌

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

      Thank you! Cheers!

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

    Very clear. Nice to mention that you are using the Strategy Pattern to adhere to this principle here.

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

    awesome explanations

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

      Thank you! Cheers!

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

    to complicated...

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

      I understand it might seem complicated at first. I felt the same when I first encountered it. Try watching it a couple of times, and it'll start making more sense. Don't hesitate to ask if you have any specific questions!

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

    Quality content

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

      Thank you

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

    Sir I love you!, Thank you

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

    Very easy to understand, thank sir.

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

    This is helpful am currently working on an eCommerce site that requires multiple payment gateways, am going to try this

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

      Glad you liked it!

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

    Awesome

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

      Thank you

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

    so useful thank you so much

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

    very nice.keep it up

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

    It's very clear , thanks you

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

      Thank you! Cheers!

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

    so so helpful thanks for your effort

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

      Thank you! Cheers!

  • @sameera-dananjaya-wijerathna
    @sameera-dananjaya-wijerathna 2 года назад

    Awesome explanation

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

      Glad you liked it

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

    Wow, loved it.