My Darkest Fantasy... Laravel Livewire + Vue (Instead of Alpine) would be beautiful...
I didn't want to give an opinion here anymore because it's not really an opinion, you can't give an opinion on something that doesn't exist, but as they say, I wanted to fantasize a little, in this case, about some rather strange combinations, especially about the last videos that I've made here on the channel, mostly about throwing in Inertia, or rather, as I say, a little bit of humor, but as much as I was thinking or have been thinking a little about how I would love to see an integration between Liveware Reinert, or rather Lightware, with View, I think that would be very interesting in some cases, I don't know what you think because I still don't, as I say, have it well conceptualized, a bit of a crazy idea to understand this a little bit.
Inertia, it's just returning a Vue instead of a blade
I think you have to understand a little bit how Livewire works, which I think is the most complicated scaffolding because the inertia one is a Vue instead of a blade, and that's all.
Livewire, Laravel components with vitamins
While Livewire, apart from being a vitaminized component, as I call it, also has the Alpine part, that is, we have an additional layer, which is why I consider it to be more difficult to master than simply Inertia, which is a blessed view and that's it. I think it's easier to start with Livewire.
If you don't know Vue, but if you do know Vue, it's easier to start with Inertia. But as much as I love the view part, Vue is the only one to date, the only client-side framework I work with. I mean, I don't work with React, I don't work with Angular. I'm interested in Astro, but for now, that's it, and I really like it a lot. I haven't had the need to learn anything else because with it, I can do everything I want.
My fantasy, Livewire + Vue or Inertia with component improvements
So, listen, Alpine, obviously, what happens is that I don't even consider Alpine to be almost a framework. I consider it almost a joke because it's something. You go to the official page and literally scroll for 30 seconds, and that's Alpine plus one or another plugin out there, it's extremely limited.
So that's when I tell you that it would be interesting to see what Vue is. Mind you, the integration we have, or the choice of Alpine for Livewire, seems like an extremely wise choice, partly because of what we've discussed, because here we're still working a bit with Laravel, and Alpine is for doing those little things, those specific animations, that interaction with the user, any operation you want to do there on the client.
But even so, as I say, a little fantasizing, I would love more than Alpine to also have the possibility of using Livewire directly or also for Inertia, so to speak, to finish implementing it correctly in my opinion and can inherit Livewire features such as component reusability, which I believe is a fundamental piece in all of this.
I think it's less necessary to use Vue because if it's not necessary to use Alpine again, then you tell me that I want to use Vue, less than less, of course, there because it's a very simple view. In reality, there we simply use the functionalities we have in Livewire and little else; that is, the part about full-duplex communication for properties, understood as wire models, understood as the equivalent of v-models in Vue, then really there is no need to use much for a traditional form, you don't need to use much logic, but…
What if we want to make a really nice form with animations based on some selection in the user?
So that we can apply some validations on the client to display additional data, that's where I say I wanted to use those types of technologies a little better.
Another example could be the blog website. Suppose you want to do a lot of social interaction for the sharing part, then you want to do a tremendous plug-in there, well, you click on it, it expands, animated bubbles everywhere, and everything else. Obviously, doing those types of projects in Alpine might be good. Doing them live is going to be much easier than using Alpine, since for every plugin or documentation you want to search in Alpine, you'll find 10 or 20 for Vue. That's what I'm referring to, in addition to the potential that Vue has.