What's the Future of Livewire and Alpine.js?

preview_player
Показать описание
Let's discuss: should you adopt those technologies? Or is it better to work on the front-end frameworks like Vue or React? What is the current situation in the job market? People have shared some opinions on Twitter, and I will summarize them in this video.

- - - - -
Support the channel by checking out our products:
Рекомендации по теме
Комментарии
Автор

For me, Livewire is just a piece of the puzzle when it comes to the Laravel ecosystem. I think you can't compare a Livewire job search against another ecosystem like Vue or React. Projects are build almost specific with Vue or React. This isn't the case for Livewire or even Alpine JS, where Laravel developers use it occasionally when the use case lends itself to it. A Vue/React vs. Laravel comparison would be more appropriate if you as me :)

willem
Автор

Wow a tweet and video about my comment! Interesting to see this discussion. Maybe my comment was a bit blunt, I'm just one person with my own experience of coarse, it could be totally possible that Livewire and Alpine are often used in other situations.

To add some more nuance, the reason most companies choose to use a separate front-end with vuejs or react is because it adds more flexibility. The API endpoints are already there so you can connect with little changes a mobile app or offer the endpoints to the customer for anything else. Separation of the front-end and back-end is more work but also considered more future proof. So for larger projects I think it's a no-brainer. It's not only a trend you see with Laravel, more and more back-end languages and frameworks are primarily used as API.

There is nothing wrong with Livewire or Alpine itself though, for smaller projects, prototypes or an admin panel Livewire and Alpine are totally valid options but as others have mentioned I think they will stay niche products. I respect Freek, I have even met him in person but I have to disagree with him on this one, the puck is not moving towards Livewire and Alpine. :)

user
Автор

Hey!
I don't think it's so right to compare Livewire and Vue/React. Vue and React are JS frameworks. Is necessary to know JS. Livewire is cool way to write fancy JS things with PHP. In one if his videos, Stefan Mischook says "Php is the King of Freelancing". This is why Livewire is much better than Vue/React. Livewire allows you to write 95% php in freelance projects (ofc for the rest 5% is alpine). My official job is Laravel + Vue js, but other projects (self projects, freelance project, even small fancy games projects) are only Laravel + Livewire + AlpineJS.
Livewire, in my opinion, is Blazor for php.
P.S. Keep doing these videos. They are amazing! Than You!

inso
Автор

Livewire can also be a bridge step for developers who wants to shift from blade to spa, especially VueJs. Because Caleb Porzio himself says there are a lot of similaraties between them

qudratxojamusayev
Автор

alpine.js by itself is fine if you need some SPA-like functionality where vue.js looks like overkill, so i sometimes use it in my projects, livewire not sure, it looks a bit messy

JohnToridas
Автор

livewire is neat, it's really useful when you want to make a reactive page but you don't want to be bothered by making route for one method inside one controller just for getting data for that page. alpine is a lifesaver for me, it's kinda like vue but more simple

ilhamfajriumar
Автор

Live wire is cool but i prefer to separate the front end so I can scale based on demand.

brianstory
Автор

I think Livewire is very coupled with Laravel and Vue and Recatjs they are easy to decouple them by creating backend/frontend as SPA, so I prefer to learn technology portable and I can use it anywhere

HussamAdil
Автор

What are your thoughts on inertiajs ? I think it will replace Livewire and Alpine in near future. With the introduction of SSR. 🤔

shanakaperera
Автор

Hi Povilas,

I have a question which is not related to this topic if you please describe which practice is best.

in the below class when a request comes into the controller I store the request in a variable then everywhere I can use it.



class abcController {

private $request;

public function __construct(Request $request)
{
$this->request = $request;
}

}





in the below class when a request comes into the controller I pass the request to a related function so ill use it within the function.


class abc {

public function getAll(Request $request)
{

}

}



please share your opinion

satashanofficial
Автор

Api + vue = for mobile app as well as web development

SussanRai
Автор

I use livewire when i have to do a quick and small interactive component, but just for that. In my experiency, using livewire in Big component come with very Bad performance and dome weird bugs

JoseDlucca
Автор

I started with livewire but i saw quasar. Have you see it?
Thanks from Brazil

felipeveiga
Автор

I usually use Svelte and Laravel with InertiaJS, and just plop them in an Elastic Beanstalk

PathOfDamn
Автор

How I Can Add Rich Text Editor in Livewire Component

dhanrajchakravarti
Автор

Javascript is so mess up with this "another new framework" thing. InertiaJS is the future of Laravel. It brings popular JS frameworks to Laravel.

iboxch
Автор

Alpine jobs don't make much sense, it's a system for enhancing existing pages and has a low learning curve. No real reason to ask for it as a job, it can be taught pretty fast.

geneanthony
Автор

In my experience Alpine.js was shit show. I would never use it in any of my project, even if I have to.

cvija
Автор

i dont like to watch Caleb Porzio, he is like kid on steroids, not my kind of 'teacher'.

nikolicvladimir