Mastering Laravel Action Classes: Organize Your Code and Boost Your Productivity

Поделиться
HTML-код
  • Опубликовано: 15 фев 2023
  • In Laravel or any programming language for that matter, you have many ways to architect your code. Some follow the MVC pattern, and some may use the Factory pattern to name a few.
    In Laravel, Action classes are a thing that has been used in multiple places including some of the first-party plugins from the framework maintainers. And this package of Laravel - Action classes takes the actions to the next level and allow you to architect your code much better.
    In this video, I am going to show you the power of Action classes.
    You can find me on:
    Twitter: / amitavroy7​
    Discord: / discord

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

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

    Good package, although I liked ADR more

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

      Sure, this is just one more of the many ways to do things

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

    I can see why people like the action classes but I don't like the idea of putting everything in one place. I think each class should do its own job by using similar classes under the hood.

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

      Yes, I do agree with what you’re saying.
      Here in this example, the update password class is responsible for the main business logic, response and even managing a console command.
      But yes, this idea is quite different. Almost like how initially tailwind felt.
      But now it is getting used a lot. So, never know