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

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

КОМЕНТАРІ • 64

  • @ajzack983
    @ajzack983 4 місяці тому +7

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

    • @hermanceaser
      @hermanceaser 4 місяці тому +2

      Exactly what i wanted to comment about 😅

    • @LaravelPHP
      @LaravelPHP  4 місяці тому +2

      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 4 місяці тому +4

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

  • @Sillyvan
    @Sillyvan Місяць тому

    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 місяці тому +2

    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

  • @sajsaj
    @sajsaj 4 місяці тому +9

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

    • @LaravelPHP
      @LaravelPHP  4 місяці тому +2

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

  • @yoanestradablanco1608
    @yoanestradablanco1608 4 місяці тому +1

    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  4 місяці тому +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

  • @Ivcota
    @Ivcota 4 місяці тому +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  4 місяці тому

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

  • @pawenowicki6575
    @pawenowicki6575 4 місяці тому

    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  4 місяці тому

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

  • @Devdojo
    @Devdojo 4 місяці тому

    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

  • @JeremyMoore1
    @JeremyMoore1 4 місяці тому

    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  4 місяці тому

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

  • @kouceylahadji
    @kouceylahadji 4 місяці тому +1

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

    • @LaravelPHP
      @LaravelPHP  4 місяці тому

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

  • @jonatasbaldan
    @jonatasbaldan 4 місяці тому +1

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

    • @Fool-arxana
      @Fool-arxana 4 місяці тому

      I wanna know as well.

    • @LaravelPHP
      @LaravelPHP  4 місяці тому +1

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

  • @Tuktuk_Academy
    @Tuktuk_Academy 4 місяці тому

    Thank You for adding github repo

    • @LaravelPHP
      @LaravelPHP  4 місяці тому

      Glad that helps! :)
      -Josh

  • @mityukov
    @mityukov 4 місяці тому

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

    • @LaravelPHP
      @LaravelPHP  4 місяці тому

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

  • @jokergamingtv5002
    @jokergamingtv5002 4 місяці тому +1

    Why is Splade not available?

    • @Samuel.Mwangi
      @Samuel.Mwangi 4 місяці тому +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  4 місяці тому +1

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

  • @mariomthree
    @mariomthree 4 місяці тому

    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 4 місяці тому +1

      I dont have this problem

    • @mariomthree
      @mariomthree 4 місяці тому

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

  • @davidadokuru8139
    @davidadokuru8139 4 місяці тому

    love this video.
    Thanks

    • @LaravelPHP
      @LaravelPHP  4 місяці тому

      Thanks for watching David!
      -Josh

  • @hasithudayanga6160
    @hasithudayanga6160 4 місяці тому +2

    Livewire is Awesome 🎉

    • @LaravelPHP
      @LaravelPHP  4 місяці тому +1

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

    • @hasithudayanga6160
      @hasithudayanga6160 4 місяці тому

      @@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 🥹

  • @MarceloPereira-wx7in
    @MarceloPereira-wx7in 4 місяці тому

    Great video 🔥

    • @LaravelPHP
      @LaravelPHP  4 місяці тому

      Thank you for watching Marcelo ☺️
      -Josh

  • @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

  • @Samuel.Mwangi
    @Samuel.Mwangi 4 місяці тому

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

    • @LaravelPHP
      @LaravelPHP  4 місяці тому

      Completely agree! :)
      -Josh

  • @theshinyplayer2373
    @theshinyplayer2373 4 місяці тому

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

    • @LaravelPHP
      @LaravelPHP  4 місяці тому

      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 4 місяці тому +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.

  • @sajadtorkamani9399
    @sajadtorkamani9399 2 місяці тому

    I prefer the blade version ;)

  • @salahdidi8287
    @salahdidi8287 4 місяці тому

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

    • @LaravelPHP
      @LaravelPHP  4 місяці тому

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

  • @srhanzd3022
    @srhanzd3022 4 місяці тому

    🔥🔥🔥

  • @ВячеславПрокоса-д1ж
    @ВячеславПрокоса-д1ж 4 місяці тому +1

    server-side rendering welcome to 2010

  • @srhanzd3022
    @srhanzd3022 4 місяці тому

    😍😍😍

  • @hafiznugraha3063
    @hafiznugraha3063 4 місяці тому

    i wanna try livewire form right now

  • @srhanzd3022
    @srhanzd3022 4 місяці тому

    ❤❤❤

  • @khant-nyar
    @khant-nyar 4 місяці тому

    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

  • @drugoviic
    @drugoviic 4 місяці тому

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

    • @LaravelPHP
      @LaravelPHP  4 місяці тому

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

    • @khanra17
      @khanra17 Місяць тому

      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' 😑

  • @khanra17
    @khanra17 Місяць тому +1

    Don't whisper, speak 🗣️