Livewire or Vue.js: Which to Use When?

  Рет қаралды 12,216

Laravel Daily

Laravel Daily

22 күн бұрын

I've made a poll on Twitter/KZbin/LinkedIn, time to discuss the results and read your comments.
Links to poll results/comments: / 1786006833112518882
- - - - -
Support the channel by checking out my products:
- My Laravel courses: laraveldaily.com/courses
- Filament examples: filamentexamples.com
- Livewire Kit Components: livewirekit.com
- - - - -
Other places to follow:
- My weekly Laravel newsletter: us11.campaign-archive.com/hom...
- My personal Twitter: / povilaskorop

Пікірлер: 72
@IgorAlentyev
@IgorAlentyev 19 күн бұрын
Livewire is great, Vue also great. Using both. Livewire for front part of app (i mean that one, which users saw when came to site) and SEO. And Vue for back part (which is not opened for search engines so its more like admin part but for other category of users). We absolutely could use Inertia for SEO but in my tests - livewire has 3 times less weight and loads faster. Livewire 2 was really bad in terms of perfomance. But now we have 3 and it was completely rewrited as far as i know so now its actually very fast.
@kingshanaman
@kingshanaman 11 күн бұрын
Thank you for this Video. My reason for going to VueJS was purely to keep my JS knowledge up to date in a world where JS is taking over. I don't regret the decision.
@yordanmilchev8706
@yordanmilchev8706 19 күн бұрын
I used both introduced livewire in my old company and now working with vue3 and from my perspective vue3 is superior but also harder to begin with for sure, once you have the foundation vue is better
@user-js9rz9lj4w
@user-js9rz9lj4w 19 күн бұрын
I learned and used Livewire 2 in my previous training project. After that, I decided to learn modern vanilla JS and now re-making the project with JS modules in conjunction with pure CSS, SCSS and Vite. And I found this stack really powerful and having unlimited possibilities. The one downside is manually defining routes and writing fetch() functions. But you can really do anything you need. The number of lines of JS code is about the same as with Livewire, but now all frontend logic located in right directory, has clean structure and builded by Vite in a single js module. I don't know Vue.js yet and want to learn it next. But I don't want to return to Livewire.
@syalwacode
@syalwacode 19 күн бұрын
I have used laravel with livewire, laravel with inertia react, laravel with vuejs. However, I am more comfortable using Inerta+React, because React has lots of packages, and Laravel too. so I think it's a perfect combination. so when creating a new project, I always use breeze with inertia and react
@leonelmunozlopez
@leonelmunozlopez 19 күн бұрын
For more flexibility, VUE.js (with Inertia)
@vanvanni_nl
@vanvanni_nl 19 күн бұрын
Big problem with Vue and Inertia is making API's, parsing the JSON handling all the errors, etc etc. Livewire makes that soo much easier. If that was different I might try Inertia with Svelte
@ajlive6737
@ajlive6737 15 күн бұрын
i think the reason vue comes first .. so the early devs adopted vue. and the new devs and upcoming devs will go with livewire.
@user-cf5uf7vf2g
@user-cf5uf7vf2g 19 күн бұрын
i use livewire since livewire 1, due to date, i still struggle need to vite/npm/webpack vue, reactjs, tailwind, every single time of change a line of code.
@yungifez
@yungifez 20 күн бұрын
Lol I use what tickes my fancy that day😂😂
@scuraluis
@scuraluis 19 күн бұрын
I am learning Vue because I think it will open more doors in the future and want to avoid to be stuck in the Laravel bubble. (I could take a Nuxt js project for example). But I come from frontend background so is easier for me. Although, I do think if you are a laravel developer you should know at least the basics of Livewire.
@BelgranoK
@BelgranoK 19 күн бұрын
I believe the concept behind Livewire is excellent, but I sometimes struggle to understand the interactions between the browser and server. I hope the Laravel team's support will clarify this aspect.
@jcc5018
@jcc5018 8 күн бұрын
This helps somewhat for the question I asked on another video a few days ago. I do have another request for a possible video. What technologies can work together, vs those that are either or situations. From my understanding, vue, react, and livewire are mostly either/ or tech stacks. But how bout alpine? If i utilize filament for a backend, can that be used with a vue or react frontend? ( i think the answer is yes, but how much configuring would I need to do for both to work together ) And blade, does vue/ react mostly replace blade, or does it supplement blade? And from my understanding JS frameworks require an API set up (unless you use intertia?), so would that mean I either use an API controller vs a regular controller? Or do you need both? And if you start with livewire, how much of a pain would it be to switch to react or vue? I'm not swapping yet, cause right now livewire seems to be working for most things as my components are fairly basic at this stage, but I'm thinking long term performance on a big site. If I'm going to potentially have issues, I want to get things started in the right direction now, rather than spending money reworking things later. My main concern is handing many users at once and data security. There are just so many tech stacks that its getting a bit overwhelming trying to figure out all the different processes that I would have to alter going from one system to another. Some sort of quick summary video of various setups of tech stacks or any other of the laravel official packages could be helpful if you have the time
@LaravelDaily
@LaravelDaily 8 күн бұрын
You're looking at it way too complicated. Generally, it's just this: you choose either TALL or VILT/RILT stack and don't mix them. My video: kzbin.info/www/bejne/Z3W8qal-p7yenqMsi=rNwG_mV5UvXByjri
@jmon24ify
@jmon24ify 19 күн бұрын
To me, I don't see livewire as a complete alternative to Vue. I find myself having to use livewire with alpine to get similar reactivitiy and functionality as Vue. But even then, I find livewire/alpine falls short in certain areas like lifecycle hooks. Another example is, in Vue, I can encapsulate all logic in a single component whereas I have to split my logic between livewire classes and in alpine which makes it harder to maintain and debug
@MahfoozurRahmantushersuvro
@MahfoozurRahmantushersuvro 6 күн бұрын
Just curious to know one thing here. Although there has been discussion a lot which stack is preferrable ( livewire or vue) for what project. But I was eager to know which one of them is preferrable to use in regard to SEO. If anyone knows about it please kindly share it. Thanks
@LaravelDaily
@LaravelDaily 6 күн бұрын
Both may be good or bad for SEO, it depends mostly on how you structure the pages. Also, we're talking about SPA as single page applications which are APPLICATIONS and not websites. Internal applications don't care that much about SEO. But if you're building a website with SEO, you may even not use neither of dynamic elements or Livewire/Vue. It depends on the project.
@sotoykaiba4959
@sotoykaiba4959 12 күн бұрын
Use vue if want use quasar or vuerify
@fadye3050
@fadye3050 17 күн бұрын
what about you is a livewire can used for big projects?
@LaravelDaily
@LaravelDaily 17 күн бұрын
Yes
@mangtri9680
@mangtri9680 19 күн бұрын
Livewire is so slow on development when connect with database, like need 3s to apply the change on the browser. am I the only one experiencing this?
@wevertonlotosport
@wevertonlotosport 19 күн бұрын
Yes! 3s is too much, Im using MySQL local here, Lviewire v3 and Laravel 10, very snappy! Sometimes making a CRUD with certain complexity, will be slow, but not 3s haha
@therealcrib
@therealcrib 19 күн бұрын
Nope! Actually, the reason I don't like Livewire is because it is super slow when I'm developing (I don't know about when deployed to production) but I haven't had the energy to finish a project with LIVEWIRE. Vue works great for me, all day everyday. No hiccups! Very fast
@mnchabel8402
@mnchabel8402 18 күн бұрын
Personally I've decided to stay away from inertia and rather just do API with a frontend framework(Nuxtjs). And livewire if I'm using laravel for frontend. HTMX is also something I'm considering.
@holacuba2001
@holacuba2001 19 күн бұрын
Bootstrap for economy!
@flaviusconstantin
@flaviusconstantin 19 күн бұрын
😂
@fydellysramalho3968
@fydellysramalho3968 19 күн бұрын
Noob!
@sebacarrasco93
@sebacarrasco93 20 күн бұрын
Livewire
@johnwesley2090
@johnwesley2090 19 күн бұрын
is it vue.js or inertia
@shubhamsahuSD
@shubhamsahuSD 16 күн бұрын
Livewire any time with alpine js
@lovelaravel1140
@lovelaravel1140 19 күн бұрын
I just can't understand. Why doesn't anyone mention server side rendering. Is SSR no longer relevant in 2024?
@pau1phi11ips
@pau1phi11ips 15 күн бұрын
You're still getting SSR with Livewire aren't you?
@lovelaravel1140
@lovelaravel1140 14 күн бұрын
@@pau1phi11ips yes
@lovelaravel1140
@lovelaravel1140 14 күн бұрын
@@pau1phi11ips Yes I'm getting SSR with Livewire. I just don’t understand how you can make, for example, an online store Laravel + React or Laravel + Vue? Is SSR no longer needed? And if we take Next.js, for example, then why does it need Laravel? It's great even without Laravel.
@lovelaravel1140
@lovelaravel1140 14 күн бұрын
@@pau1phi11ips Yes I'm getting SSR with Livewire. I just don’t understand how you can make, for example, an online store Laravel + React or Laravel + Vue? Is SSR no longer needed? And if we take Next.js, for example, then why does it need Laravel? It's great even without Laravel.
@msharifahmed1115
@msharifahmed1115 20 күн бұрын
Vue.js
@lovelaravel1140
@lovelaravel1140 16 күн бұрын
SSR?
@JuriBinturong
@JuriBinturong 19 күн бұрын
Vue is fun to use
@lovelaravel1140
@lovelaravel1140 16 күн бұрын
SSR?
@samiulislamsharan
@samiulislamsharan 19 күн бұрын
please make a video about Vue Flow
@LaravelDaily
@LaravelDaily 19 күн бұрын
I don't want to dive into Vue on this channel, it's about Laravel
@jcc5018
@jcc5018 8 күн бұрын
@@LaravelDaily would you have any recommended creators that have similar teaching style as you for vue/ react ? IE not starting from complete scratch on every tutorial and making videos straight to the point
@MrAgri20
@MrAgri20 19 күн бұрын
Nuxt3 SSG and Laravel
@blalmal10a
@blalmal10a 19 күн бұрын
im planning to transition to this (from quasar + laravel).. do you use $fetch or axios to make api request?
@MrAgri20
@MrAgri20 19 күн бұрын
@@blalmal10a you can use both, but I just prefer axios because it's a bit more comfortable to enable global config, like common header, interceptor, and error handling On useFecth they will suggest you to create a new custom composable (myUseFetch) to customize header and interceptor
@fullstacklarry
@fullstacklarry 20 сағат бұрын
$fetch...you will have to take a look at Nuxt docs to grasp the concept of using fetch in Nuxt as there are different ways to handle requests based on if the call is client side, server side, or if you want the call to occur on both.
@gge6021
@gge6021 15 күн бұрын
we use both kekw
@rtothec1234
@rtothec1234 19 күн бұрын
If you plan to use any major libraries or add-ons then you probably want Vue or React or Svelte. Livewire is not really even acknowledged by and large in the JavaScript community. Not big enough.
@benshaw6209
@benshaw6209 17 күн бұрын
Great observation, and often overlooked when this issue is discussed. For example you can use shadcn or other great UI libraries with Vue/react/inertia but not livewire. No fault of livewire, just an ecosystem popularity issue.
@Nelexis
@Nelexis 13 күн бұрын
We pay more when try to pay less. I've prefer to learn Laravel + more difficult React, but it will 2 big things, not 1+.
@hafiznugraha3063
@hafiznugraha3063 19 күн бұрын
for me it depends on cost and deadline. vue js for best performance and livewire for fast develpoment
@virgiliustancu9293
@virgiliustancu9293 19 күн бұрын
It is easier to learn Vue.js at very high level than both at midle level. Vue.js can be used outside Laravel.
@thiennguyenba8001
@thiennguyenba8001 19 күн бұрын
Vue.js have more future
@amir_hjr
@amir_hjr 19 күн бұрын
React feeling: am i a joke to you?
@simonchasnovsky1835
@simonchasnovsky1835 19 күн бұрын
Here's my take: 1) Never, ever use Livewire 2) For your first full-stack project, use the integrated Blade for an in-house frontend 3) For every project after that, your backend should be a Laravel API and use whatever you want as a separate frontend to consume that API (Vue if you like to have fun, React if you like to make money, Angular if your parents work at Google)
@Bykv78
@Bykv78 2 күн бұрын
The comment that prefers Vue for having larger community is not relevant anymore. Now that you can ask AI any question, and get very precise answers, community is not of the importance it used to be.
@masroorehsan4038
@masroorehsan4038 Күн бұрын
TL;DR - avoid Livewire for anything other than toy projects
@L-A-O-S
@L-A-O-S 20 күн бұрын
livewire is not professional. This is somewhat reminiscent of WordPress.
@L-A-O-S
@L-A-O-S 20 күн бұрын
In many cases, the front-end and back-end are on different servers, and livewire will be useless here.
@yungifez
@yungifez 20 күн бұрын
Wait till he hears about HTMX If the site works well and can be maintained, there's no problem imo
@krekas
@krekas 20 күн бұрын
What's not professional about it?
@L-A-O-S
@L-A-O-S 19 күн бұрын
@@krekas livewire is sometimes extremely difficult to connect with another js library. And to make it work, you have to come up with crutches. This is just one of the points.
@tanzimibthesam5861
@tanzimibthesam5861 19 күн бұрын
Livewire is not intended to use with a JS framework or APIs. Its intended to use with TALL stack. If u need APIs use Vue or nuxt n standalone APIs
@s.h.i.e.l.d..
@s.h.i.e.l.d.. 19 күн бұрын
I use ReactJs with Laravel.
@lovelaravel1140
@lovelaravel1140 16 күн бұрын
SSR?
Laravel + Livewire todo app (and so much more)
16:41
Aaron Francis
Рет қаралды 28 М.
Laravel TALL vs VILT Stack: Explained with Examples
12:38
Laravel Daily
Рет қаралды 10 М.
UFC 302 : Махачев VS Порье
02:54
Setanta Sports UFC
Рет қаралды 1,2 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 76 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 3,8 МЛН
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 1,1 МЛН
The Importance of Specialization in Coding
7:13
Traversy Media
Рет қаралды 154 М.
Ryan Dahl introduces JSR at DevWorld 2024
29:13
Deno
Рет қаралды 88 М.
Top 5 Laravel "Bad Practices" (My Opinion)
10:32
Laravel Daily
Рет қаралды 17 М.
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 87 М.
Livewire VS Vue.js: Practical Example of Dependent Dropdowns
13:40
Laravel Daily
Рет қаралды 41 М.
Await Async Tasks Are Getting Awesome in .NET 9!
9:24
Nick Chapsas
Рет қаралды 85 М.
Avoid these 5 beginner CSS mistakes
21:38
Kevin Powell
Рет қаралды 53 М.
Responding To The Tailwind Conspiracy
37:25
Theo - t3․gg
Рет қаралды 74 М.
Laravel vs React
9:40
Aaron Francis
Рет қаралды 39 М.
What is Laravel Octane?
8:34
Aaron Francis
Рет қаралды 28 М.
Огромная семья 😳
0:25
Фильмы I Сериалы
Рет қаралды 2,6 МЛН
ПООСТЕРЕГИСЬ🙊🙊🙊
0:39
Chapitosiki
Рет қаралды 16 МЛН
I got 💎 thank you so much!!
0:15
OHIOBOSS SATOYU
Рет қаралды 11 МЛН