Service Pattern in Laravel 11 | Simplify and Control Your Business Logic | Design Patterns

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 18

  • @mdsafikulislam9113
    @mdsafikulislam9113 3 дні тому +1

    Thank you so much ❤

  • @mdsafikulislam9113
    @mdsafikulislam9113 3 дні тому +2

    After completing this series, please make a video about Laravel Octane❤

  • @hamzandev9482
    @hamzandev9482 3 дні тому +1

    great video

  • @piyushshyam473
    @piyushshyam473 3 дні тому +1

    Nice 👍

  • @VinodkumarD-f2v
    @VinodkumarD-f2v 3 дні тому +1

    What is the role of repository and what we can achieve?
    ,in your example given only job of postman

    • @programmingfields
      @programmingfields  3 дні тому

      @VinodkumarD-f2v I would recommend please watch the complete playlist.

  • @kukun2748
    @kukun2748 3 дні тому +1

    Can you add more controller instead of todo?

    • @programmingfields
      @programmingfields  3 дні тому

      @kukun2748 You can create and use more controllers similar to the TodoController. I just demonstrated the use of this.

    • @kukun2748
      @kukun2748 2 дні тому +1

      @@programmingfields How about in AppServiceProvider? Should I just add a another interface and respository in register function?

    • @programmingfields
      @programmingfields  День тому

      @@kukun2748 Let's suppose, you have one more controller just like UserController.
      1. You need to create an interface for this as suppose UserInterface and
      2. Also a repository class as UserRepository.
      3. Then you will have to bind the UserRepository and UserInterface together in the AppServiceProvider similar to the Todo.
      Rest you can define the methods in the Interface and implement them in the Repository class as explained in the video.

    • @kukun2748
      @kukun2748 2 години тому

      @@programmingfields thank you very much! I understand it now!

  • @Harislive-g7o
    @Harislive-g7o 7 годин тому

    Goood

  • @Harislive-g7o
    @Harislive-g7o 7 годин тому

    CFBR