Repository Pattern in Laravel 11: Clean Code, Better Testing, Faster Scaling | Design Patterns

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น •

  • @KamrulSarwar
    @KamrulSarwar 22 ชั่วโมงที่ผ่านมา +1

    Thanks

  • @tusar711
    @tusar711 23 ชั่วโมงที่ผ่านมา +1

    Most needed content. Everybody is focused on teaching coding only. We need such content to show how to work in the real world.
    Much appreciated, brother❤.
    Keep uploading such content

    • @programmingfields
      @programmingfields  22 ชั่วโมงที่ผ่านมา

      @tusar711 Thank you very much..

  • @mdsafikulislam9113
    @mdsafikulislam9113 19 ชั่วโมงที่ผ่านมา +1

    Eagerly waiting for your next videos....

    • @programmingfields
      @programmingfields  13 ชั่วโมงที่ผ่านมา

      @mdsafikulislam9113 will be published very soon. Thank you.

  • @piyushshyam473
    @piyushshyam473 19 ชั่วโมงที่ผ่านมา +1

    Awesome 🎉

  • @drishti5450
    @drishti5450 วันที่ผ่านมา +1

    Thank you🙏

    • @programmingfields
      @programmingfields  23 ชั่วโมงที่ผ่านมา

      @drishti5450 You're welcome.

  • @hirang1148
    @hirang1148 11 ชั่วโมงที่ผ่านมา +2

    Why do we need to bind the interface and not just use `implement` in the repository?

    • @programmingfields
      @programmingfields  11 ชั่วโมงที่ผ่านมา +1

      @hirang1148 If you don't use binding, Laravel cannot resolve the interface automatically, resulting in errors when trying to inject it. You'll need to manually instantiate the implementation every time, which leads to tightly coupled code. This makes it harder to switch implementations (e.g., for testing or new features) and reduces maintainability, flexibility, and adherence to SOLID principles like dependency inversion

    • @hirang1148
      @hirang1148 11 ชั่วโมงที่ผ่านมา +1

      @programmingfields oh ok thanks. I understand it now

    • @programmingfields
      @programmingfields  10 ชั่วโมงที่ผ่านมา

      @@hirang1148 Glad to know.