Laravel Livewire Volt. Functional API Components VS Class-based Components

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

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

  • @binaryfire
    @binaryfire 10 месяцев назад +4

    Our app uses both Livewire (dashboard / basic crud stuff) and Vue (a complex visual editor). We have a separate frontend team so we avoid Volt - it's much easier for the JS devs to tweak Livewire views if the PHP logic is in separate files. Safer too, because they never touch the classes and can't accidentally break anything. It's a nice option for PHP-only teams though.

    • @CodewithBurt
      @CodewithBurt  10 месяцев назад +2

      It all depends on the project and on the teams working on that project.
      At our company, it always depends on the scale of the project.
      I would like to see how far we can go with this. Most of the time we're using normal Livewire (separate files for PHP and blade) or completely headless.

  • @GuilhermeLegramante
    @GuilhermeLegramante 9 месяцев назад +3

    The problem is when we need add some more complexity in component features. I think that merge logic layer with front-end layer is not a good decision, only to small projects or small features.

    • @CodewithBurt
      @CodewithBurt  9 месяцев назад +2

      It all depends on the project at hand indeed.

  • @muhammadalifdanielbinmohdh3188
    @muhammadalifdanielbinmohdh3188 4 месяца назад +2

    Hey can you make an crud tutorial for laravel tall stack with volt class?

    • @CodewithBurt
      @CodewithBurt  4 месяца назад

      It's on my list, but I need to find some extra time. Thanks for watching!

  • @hentype
    @hentype 8 месяцев назад +2

    I was not much of a fan of volt until I started having an actual use for it: I initially write the class-based backend codes directly on blade and test it more easily before moving it to the backend when I'm done with the code. It's kinda dumb and funny but it made coding for livewire easier and I don't have to be forced to use volt in production so I still maintain the same separation of concern I've gotten used to.

    • @CodewithBurt
      @CodewithBurt  8 месяцев назад +1

      That's a great tip btw.
      I use them whenever it feel right. So basically it's a healthy mix of both.

  • @ilahazs
    @ilahazs 5 месяцев назад +1

    Is it safe? I want to rebuild my livewire blog app. But my concern they merge client and server thing in one file.

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

      Yes, I use it in production for small things.

  • @youssefbakkali8673
    @youssefbakkali8673 7 месяцев назад +2

    in me project volt lazy load not working

    • @CodewithBurt
      @CodewithBurt  6 месяцев назад

      Maybe you have an js issue somewhere preventing it. You should check the documentation for this issue I guess.

  • @AlexanderBelov-y8o
    @AlexanderBelov-y8o 8 месяцев назад +1

    So much more easy than React and I can use PHP.