Livewire vs. Inertia
ฝัง
- เผยแพร่เมื่อ 6 มิ.ย. 2024
- In this video I react to an article written by Tony Lea about Livewire vs. Inertia - t.co/45KQKs4o6J
___
At Laravel Magazine we have a couple of ideas for upcoming TH-cam videos. We created a page where you can vote for the ones you want to see first or make a suggestion for what you would like to see next.
→ t.co/pukuGswa2e
___
Laravel Magazine
x.com - x.com/laravelmagazine
web - laravelmagazine.com
Marian Pop
x.com - x.com/mvpopuk - วิทยาศาสตร์และเทคโนโลยี
As a Laravel developer, I found that Inertia will take me out of my comfort zone, which is why I chose it. I had been building Laravel projects as only a backend developer for the past three years, so I was only making API projects. However, since the beginning of this year, I wanted to become a full-stack developer, so I tried Inertia, and man, I love it. P.S. I have never tried Livewire, but it looks great too. I'm sure I will give it a shot soon.
They are both great technologies. Inertia is better for bigger projects or for someone who's has front-end skills. Livewire is ok for smaller projects and if you don't want to learn a javascript framework.
@@laravelmagazinewhen you say smaller or bigger how you measure size of project please assist me on that?
I started with Livewire after learning barebone Laravel and I just fell in love with it. The way it simplifies everything for me was so addicting. Now I'm learning Inertia with Vue myself and it's definitely a totally different beast and I'm getting hooked with it as well.
I use livewire for my admin dasboard ( filament). And inertia react for my client page. And i run the world.
When you write Livewire you think in respect to parallel components since you can have your logic in a component
When i write inertia I tend to look at things like "what is shared", "what should be included in the first render and what is on demand", also multilanguage is a bit more difficult since you need to make some magic to have it, and here i mean keep your translations for php errors and stuff but also pass them to the frontend for rendering.
Also you tend to have more frontend libraries with ES6 in mind form the start with inertia while livewire can have a bit of a hustle especially when you have a dynamic form