#1: Single Responsibility Principle (SRP) in PHP, Laravel | SOLID Design Principles

Sdílet
Vložit
  • čas přidán 6. 09. 2024

Komentáře • 27

  • @QiroLab
    @QiroLab  Před 2 lety +1

    SOLID design principles Playlist
    czcams.com/play/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH.html
    ⌚ Timestamps:
    00:00 Introduction / Definition
    00:41 Example 1
    10:57 Example 2 (in Laravel application)
    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

  • @Laflamablanca969
    @Laflamablanca969 Před 2 lety +3

    Good job. Instead of request->only, you could just use request->validated() which returns an array of the items that were validated in your custom form request class.

    • @QiroLab
      @QiroLab  Před 2 lety +1

      This is good suggestion! Thanks

    • @Laflamablanca969
      @Laflamablanca969 Před 2 lety

      @@QiroLab thanks for the great video! Also good to see you a very humble and don’t claim to know everything!

  • @mddider9174
    @mddider9174 Před 2 lety +1

    Extraordinary. easily explained. waiting for the next concept

  • @softwaredeveloper4443
    @softwaredeveloper4443 Před 2 lety

    You are always doing great job your concept are very good for learner's. Eloquent series are very helpful for professional experience as well

  • @sirajul-anik
    @sirajul-anik Před 2 lety +3

    IMO, you shouldn't pass the request, rather pass a DTO. In that way, you can make sure that the properties exist. Because in cases it can happen that you may need to create a post from CLI, or somewhere else. But binding to that request will make creation hard, isn't it?

  • @MrRajaoui49
    @MrRajaoui49 Před 2 lety

    Good explained! Thanks

  • @varunmasih5602
    @varunmasih5602 Před 2 lety

    Great work keep doing 👍

  • @thigarette1
    @thigarette1 Před 2 lety

    Well explained

  • @sameera-dananjaya-wijerathna

    Really helpful ..thanks for your effort

  • @mr_afshar9701
    @mr_afshar9701 Před 9 měsíci

    what about the Service class ?! it has multiple responsibilities .

  • @wilsonwg
    @wilsonwg Před 2 lety

    Thank you! Very good!

  • @girjeshkumar7831
    @girjeshkumar7831 Před 2 lety

    Very nice

  • @FranciscoJunior29
    @FranciscoJunior29 Před 2 lety

    Good job! Very cool!

  • @dilmurod9820
    @dilmurod9820 Před 2 lety

    why you do not create interface export and make base model __contruct and write interface for exporting depends on type format

  • @Ehsankhan0577
    @Ehsankhan0577 Před 2 lety

    thanks for the tutorial kindly also share code/github repo

  • @AbderrahmanFodili
    @AbderrahmanFodili Před rokem

    Qiro: single responsibity
    Me: meeeeh . ok not a big deal
    Qiro : one reason to change
    Me : I'm sold . take my money

    • @QiroLab
      @QiroLab  Před 8 měsíci +1

      Thank you! Cheers!

  • @shakirbaba3978
    @shakirbaba3978 Před 2 lety

    I have a simple class but not able to implement SOLID principle on that. Could help me to implement this. I can share the class file