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

Поделиться
HTML-код
  • Опубликовано: 11 дек 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

  • @Sillyvan
    @Sillyvan 3 месяца назад +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.

  • @tanerozdas6903
    @tanerozdas6903 5 месяцев назад +6

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

  • @ArturMamedov
    @ArturMamedov 5 месяцев назад +4

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

    • @LaravelPHP
      @LaravelPHP  5 месяцев назад +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

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

  • @Devdojo
    @Devdojo 5 месяцев назад +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  5 месяцев назад

      Don't tell anyone. But same here. 😅
      -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

  • @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 Месяц назад +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

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

  • @MarceloPereira-wx7in
    @MarceloPereira-wx7in 5 месяцев назад +1

    Great video 🔥

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

      Thank you for watching Marcelo ☺️
      -Josh

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

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

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

    love this video.
    Thanks

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

      Thanks for watching David!
      -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.

  • @Samuel.Mwangi
    @Samuel.Mwangi 5 месяцев назад

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

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

      Completely agree! :)
      -Josh

  • @ВячеславПрокоса-д1ж
    @ВячеславПрокоса-д1ж 5 месяцев назад +1

    server-side rendering welcome to 2010

  • @sajadtorkamani9399
    @sajadtorkamani9399 3 месяца назад

    I prefer the blade version ;)

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

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

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

    i wanna try livewire form right now

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

    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  5 месяцев назад +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

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

    🔥🔥🔥

  • @khant-nyar
    @khant-nyar 5 месяцев назад

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

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

      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 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 3 месяца назад

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

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

    😍😍😍

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

    ❤❤❤

  • @khanra17
    @khanra17 3 месяца назад +1

    Don't whisper, speak 🗣️