#3: Liskov substitution principle (LSP) in PHP, Laravel | SOLID Design Principles

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

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

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

    SOLID design principles Playlist
    ruclips.net/p/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH
    ⌚ Timestamps:
    00:00 Introduction / Definition
    08:17 Rule 1: Parameter types must match in both child and parent classes
    09:22 Rule 2: Method return type must match
    11:10 Rule 3: Preconditions cannot be strengthened by the child's class
    11:45 Rule 4: Postconditions cannot be weakened in the child's class
    14:11 Rule 5: Exceptions thrown by the child method must be the same as from an exception thrown by the parent method.
    15:09 Rule 6: Invariants of a superclass must be preserved
    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

  • @badger1741
    @badger1741 2 года назад +9

    why do you say xyz is a children of abc when it looks like it's not

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

      Yep. It's not a proper illustration of parent and child classes.

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

      I also got confused. The parent and child explanation is not quite right here. But overall he managed to explain the principle.

    • @arunraj9989
      @arunraj9989 5 месяцев назад

      @@chooticharika me too

  • @JasonTodd-j4r
    @JasonTodd-j4r 7 месяцев назад

    last 2 video was perfect but parent child class example was annoying as hell in this video, i rewatched it 3 times i am still confused.

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

    Clear explanation. Thanks for the knowledge share.

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

      Glad you liked it

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

    Could you please cover these packages? Breeze, Cashier (Stripe), Fortify,Octane, Passport, Sanctum, Scout, Socialite, Telescope. It will be so much helpful for us.

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

      I have already created videos on some of them, these are:
      ➤ Laravel Breeze Tutorial
      🔗 ruclips.net/video/75ZigCGvR-4/видео.html
      ➤ Laravel Themer, alternative of Laravel Breeze
      🔗 ruclips.net/video/Ty4ZwFTLYXE/видео.html
      ➤ Laravel Fortify Playlist
      🔗 ruclips.net/video/CLsyHP7x0N0/видео.html
      ➤ Laravel Passport Playlist
      🔗 ruclips.net/video/UKSQdg1uPbQ/видео.html
      ➤ Laravel Sanctum Playlist
      🔗 ruclips.net/video/8Uwn5M6WTe0/видео.html
      I will cover the remaining packages also soon.

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

      @@QiroLab Thank you so much. Your works are truly amazing. I tried many tuts on YT but your content is really clean and simple to understand. Keep up this amazing work, bro.

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

      I am so glad you like my videos. Thank you.

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

    Thanks a ton for such a great video. From all the RUclips videos on Liskov princples yours stands out. You explained it so well like just in first 5 mins, it was super clear. Thanks a ton.

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

    Great video! Please make some more usages in Laravel of this. Kind Regards

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

      Thank you! Cheers!

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

    You are the best brother! Thanks!

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

    Good for a days start, I do inheritance wrongly most of the time pre & post conditions

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

      Glad you liked it

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

    Great explanation

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

    Hi