New Livewire Volt: Practical Example Component

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ส.ค. 2023
  • I want to show you the new Volt in action, based on a blog by Benjamin Crozat.
    Links mentioned in the video:
    - Benjamin's blog source: github.com/benjamincrozat/ben...
    - Original tweet: / 1688499590138372096
    - Introducing Volt: An elegantly crafted functional API for Livewire blog.laravel.com/introducing-...
    - My video "NEW Pest 2.9: 4 New Features for Better Testing" • NEW Pest 2.9: 4 New Fe...
    - Volt documentation: livewire.laravel.com/docs/volt
    - NEW Livewire v3: 9 Changes You Need To Know • NEW Livewire v3: 9 Cha...
    - - - - -
    Support the channel by checking out my products:
    - My Laravel courses: laraveldaily.com/courses
    - Laravel QuickAdminPanel: quickadminpanel.com
    - Livewire Kit Components: livewirekit.com
    - - - - -
    Other places to follow:
    - My weekly Laravel newsletter: us11.campaign-archive.com/hom...
    - My personal Twitter: / povilaskorop
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @SinghatehAlagie
    @SinghatehAlagie 11 หลายเดือนก่อน +7

    I view Volt as a sibling to Vue or React since its approach is quite similar to both of them.

    • @frtrash766
      @frtrash766 11 หลายเดือนก่อน

      That's what I was about tonsay, it feels like your working with those. Pretty good expectations from volt, tbh.

  • @kamil19862307
    @kamil19862307 11 หลายเดือนก่อน

    Great! I like it!

  • @GergelyCsermely
    @GergelyCsermely 11 หลายเดือนก่อน

    Thanks

  • @ibrahimlasisi1262
    @ibrahimlasisi1262 11 หลายเดือนก่อน +2

    Mostly, Volt usage would be on personal project, really might not be cool in an organisation project. I so much cheriched separing concerns

  • @DivyankKabra-fj8vj
    @DivyankKabra-fj8vj หลายเดือนก่อน

    Hello, I am facing a 404 error on production server when i perform any click event. I don't know why its happening can you please suggest what the issue behind this

  • @mahmoud-bakheet
    @mahmoud-bakheet 11 หลายเดือนก่อน +1

    I think if you are not using liveware as full page component is going to be helpful, but again small parts of code maybe bigger

  • @devtube734
    @devtube734 6 หลายเดือนก่อน

    How can I define a variable inside Livewire Volt Blade area like regular blade file
    Here is my full component.
    want to assign value to `$hello` variable.
    However, unable to assign variable
    ```php
    {{ $hello }}
    this is volt component {{ $count }}
    click
    ```

  • @ricko13
    @ricko13 11 หลายเดือนก่อน +1

    indeed, it looks like Vue or Svelte code

    • @mahmoud-bakheet
      @mahmoud-bakheet 11 หลายเดือนก่อน +1

      I'm not sure about putting code and HTML in same place

    • @TheRafark
      @TheRafark หลายเดือนก่อน

      Me neither

  • @eng.owis.
    @eng.owis. 11 หลายเดือนก่อน +8

    I'm really disappointed with livewire volt . Why does laravel try to return back to old code style ! I really love laravel because clean code now we go to spaghetti style

    • @Heatedpillow
      @Heatedpillow 11 หลายเดือนก่อน +7

      1000% agree!

    • @domagojfranc7824
      @domagojfranc7824 11 หลายเดือนก่อน +1

      But, you don’t have to use it if you don’t like it, for full stack developers this is nothing new. Vue has been written like this as well

    • @eng.owis.
      @eng.owis. 11 หลายเดือนก่อน

      @@domagojfranc7824 thanks , i'll not , i don't use any technical approach like this at all just if it's a backages i do not need to see it's code . Separate code based on language is an initial point of start when i choose the project path .
      Livewire did a great job for me as a full stack developer because I hate JavaScript because it's code style there is no way to be good

    • @pauloamserrano
      @pauloamserrano 11 หลายเดือนก่อน +1

      That's the point...

  • @martienvliet8812
    @martienvliet8812 11 หลายเดือนก่อน

    The only reason why I don't use livewire anymore is because it is waay too slow

    • @joydeepbhowmik6181
      @joydeepbhowmik6181 11 หลายเดือนก่อน +1

      What project are you building with livewire? ...
      I built a student portal for a client and seems pretty fast to me ...
      It's slower in development but fast in production

    • @martienvliet8812
      @martienvliet8812 11 หลายเดือนก่อน

      @@joydeepbhowmik6181 maybe it's the way I'm using livewire, but I always use javascript too, so I do alot off calls from javascript to livewire and vice versa, so that could be the reason it's slow for me. Also I'm working on a pretty big project so that also doesn't optimize the speed

  • @MatteoPresot
    @MatteoPresot 4 หลายเดือนก่อน

    Is anyone able to get php intelephense + blade highlighting using a S.F.C. Volt (class or functional API, no matter) + blade formatter working, using VsCode?