What Do Forms Look Like in Different Laravel Stacks (Blade, Livewire, and React/Inertia)?

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

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

  • @ajzack983
    @ajzack983 5 หลายเดือนก่อน +9

    small correction 6:50 : the form uses the input "name attribute" not the "Id" as input name.

    • @hermanceaser
      @hermanceaser 5 หลายเดือนก่อน +3

      Exactly what i wanted to comment about 😅

    • @LaravelPHP
      @LaravelPHP  5 หลายเดือนก่อน +4

      Good catch! Looks like I misspoke there both are great to have semantically, but the form only uses the "name" attribute. :) Thanks so much!
      -Josh

  • @tanerozdas6903
    @tanerozdas6903 5 หลายเดือนก่อน +6

    Laravel is always more powerful and successful with popular technologies. It keeps you up to date.

  • @Sillyvan
    @Sillyvan 2 หลายเดือนก่อน +1

    Really nice comparison!
    Only thing i kind of missed here was the network tab in the browser explaining how the communication is different between these 3.

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

    Amazing format! Compare all the possible stack for see the difference in different approach, good idea! Thank you very much!

    • @LaravelPHP
      @LaravelPHP  4 หลายเดือนก่อน +1

      Thanks Artur! I'm glad it resonated with you! :)
      -Josh

  • @yoanestradablanco1608
    @yoanestradablanco1608 5 หลายเดือนก่อน +2

    This video is very educational because the truth is I have used vue and react a lot, but never livewire and I see that it looks a lot like vue with its directives, I'm going to try to learn that

    • @LaravelPHP
      @LaravelPHP  5 หลายเดือนก่อน +1

      So glad that it was helpful! :) It IS a lot like Vue, especially with how you're thinking through things, but it does require a different mental model shift to thinking when you actually have to interact with the server.
      Livewire Volt is really similar to Vue in that you're only in one file/component. Might be a great place to start. ☺️
      -Josh

  • @sajsaj
    @sajsaj 5 หลายเดือนก่อน +11

    I worked with both inertia and. Livewire. But I love livewire and alpine.

    • @LaravelPHP
      @LaravelPHP  5 หลายเดือนก่อน +2

      They all have incredible benefits. I prefer Livewire myself. :)
      -Josh

  • @Devdojo
    @Devdojo 4 หลายเดือนก่อน +1

    top notch as always 👌 Really loving Livewire 😍 I've used React and Vue in the past and I just feel that Livewire allows me to be more productive and fast 💨

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

      Don't tell anyone. But same here. 😅
      -Josh

  • @pawenowicki6575
    @pawenowicki6575 5 หลายเดือนก่อน +1

    Love the video!
    Maybe You could do a video about some advanced form fields like dependent dropdown, option disabling, multiselect, grouped multiselect, something with one to many relation where user could add multiple items to the parent model at once or maybe something related to dates. That would be awesome!
    Great work!

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

      Great suggestion. I'll add it to the list for a "advanced form usage" type of video! :)
      -Josh

  • @kouceylahadji
    @kouceylahadji 5 หลายเดือนก่อน +2

    Thank you for the great video, personally this is another reason why I prefer Livewire over Inertia 😅

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

      I personally love that I never write controllers anymore with Livewire, but the flexibility and options Laravel gives is AWESOME. :)
      -Josh

  • @Ivcota
    @Ivcota 5 หลายเดือนก่อน +1

    At my job I'm leading front-end work with NextJS and our stack includes flask in the backend. We've got some neat configuration with open-api specs and code gen BUT oh my is Laravel + Intertia make so much sense for monoliths.

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

      It really is awesome! And it continues to improve. :)
      -Josh

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

    Can you use both Livewire and Blade in the same codebase?

  • @mityukov
    @mityukov 5 หลายเดือนก่อน +1

    It's not "pulling from input's id attribute". The variable names are defined by inputs' name attributes

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

      You are correct. I misspoke there. I pinned a comment and I'll add this to the description too just to clarify. :)
      -Josh

  • @JeremyMoore1
    @JeremyMoore1 5 หลายเดือนก่อน +1

    Great video and nice timing as well. I'm looking into Laravel. I'm a long-time Symfony user-I love SF's forms. Would love to see something similar between Vue and React.

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

      I haven't gotten the chance to use Symfony forms, so I'll have to take a look to compare! :)
      -Josh

  • @Tuktuk_Academy
    @Tuktuk_Academy 5 หลายเดือนก่อน +1

    Thank You for adding github repo

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

      Glad that helps! :)
      -Josh

  • @jokergamingtv5002
    @jokergamingtv5002 5 หลายเดือนก่อน +2

    Why is Splade not available?

    • @Samuel.Mwangi
      @Samuel.Mwangi 5 หลายเดือนก่อน +1

      Splade is fantastic. It is however a community package which probably explains why it's not featured here. Livewire and Inertia are almost first party at this point.

    • @LaravelPHP
      @LaravelPHP  5 หลายเดือนก่อน +1

      Splade is great, but like Samuel said, I wanted to stick to the options that come with the Breeze starter kits. :)
      -Josh

  • @jonatasbaldan
    @jonatasbaldan 5 หลายเดือนก่อน +2

    Great content!
    What font the host is using in the Vscode? This font family is pretty good looking.

    • @Fool-arxana
      @Fool-arxana 5 หลายเดือนก่อน

      I wanna know as well.

    • @LaravelPHP
      @LaravelPHP  5 หลายเดือนก่อน +1

      Howdy! Thanks so much. :) This font is the "Dank Mono" font. One of my favorites.
      -Josh

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

    I've had trouble using Livewire with depended select element. It loses style even after following the documentation. Additionally, Livewire integration with Select2 seems problematic.

    • @OverBlockPlay
      @OverBlockPlay 5 หลายเดือนก่อน +1

      I dont have this problem

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

      @@OverBlockPlay Can you help me to solve it? I will share the details problem.

  • @hasithudayanga6160
    @hasithudayanga6160 5 หลายเดือนก่อน +3

    Livewire is Awesome 🎉

    • @LaravelPHP
      @LaravelPHP  5 หลายเดือนก่อน +1

      It really is! It's awesome that we have so many options in the Laravel world.
      -Josh

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

      @@LaravelPHP We still missing a Good UI Library for Livewire. WireUi and MaryUi is great.
      But we need more pre built components like ShadcnUi. Hope we can have a good one in future 🥹

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

    Tbh I find livewire most satisfying to use from this 3
    The thing is I'm heavy backend dev

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

      I love Livewire as well, but it's nice to have options too! 😁
      -Josh

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

    Why does Blade use JS for form submissions? Why not just use...plain forms?

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

      There is no JS used for form submission on the Blade implementation. While there is Alpine for the data state of the slider (Alpine does come with the Breeze Blade kit), all of the submission is just through standard Blade forms.
      -Josh

    • @theshinyplayer2373
      @theshinyplayer2373 5 หลายเดือนก่อน +1

      @@LaravelPHP ​ Ok. I started to wonder as you consistently and repeatedly stated that it used the id attribute when submitting forms(6:50, 7:05, 8:05 ...). I see that you answered another comment that you misspoke and that it does just use plain forms. I like the comparison, but I wish you didn't split it into three columns. I understand that you wanted to show a comparison, but when the columns are that narrow it just makes it harder to compare and get an overview of what it actually looks like.

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

    This was hard to follow because the columns are too narrow.
    It would be better if you used a dual stack on the left and a full stack on the right.
    That way, you'd have 50% screen width, which is more important than height when showing code.

    • @LaravelPHP
      @LaravelPHP  4 หลายเดือนก่อน +1

      Thanks for the feedback. You're right that would have been easier to follow. I'll try to keep that in mind for next time. :)
      -Josh

  • @ВячеславПрокоса-д1ж
    @ВячеславПрокоса-д1ж 4 หลายเดือนก่อน +1

    server-side rendering welcome to 2010

  • @Samuel.Mwangi
    @Samuel.Mwangi 5 หลายเดือนก่อน

    Inertia with Vue or Livewire with alpine depending on the project requirements

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

      Completely agree! :)
      -Josh

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

    watching this video hurts,i can hear crickets in the background

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

      Oh no. Are they good crickets at least? 😬
      -Josh

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

      Absolutely his speaking style is so anything, the only reason I'm not subscribing to this channel is his whispering!
      I watch almost every video on this channel with other hosts.
      And get to ignore Josh but few topics are so good (not the host's speaking) i click & pissed off' 😑

  • @MarceloPereira-wx7in
    @MarceloPereira-wx7in 5 หลายเดือนก่อน +1

    Great video 🔥

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

      Thank you for watching Marcelo ☺️
      -Josh

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

    I prefer the blade version ;)

  • @davidadokuru8139
    @davidadokuru8139 5 หลายเดือนก่อน +1

    love this video.
    Thanks

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

      Thanks for watching David!
      -Josh

  • @khant-nyar
    @khant-nyar 5 หลายเดือนก่อน

    Blade is the best for me ,livewire is awesome but I haven't understand it

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

      Blade is great and a fantastic way to get things up and running quickly. I prefer Livewire myself but it's nice to have options. :)
      -Josh

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

    i wanna try livewire form right now

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

      Do it! :)
      -Josh

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

    🔥🔥🔥

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

    😍😍😍

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

    ❤❤❤

  • @khanra17
    @khanra17 2 หลายเดือนก่อน +1

    Don't whisper, speak 🗣️