Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Lestah's avatar
Level 11

What is the best js framework to use with laravel

is it really worth to try it than pure jquery ajax coding?

0 likes
7 replies
artcore's avatar

I've been weaning myself off of jQuery for my latest project in favor of pure es6 modules and fetch() for ajax requests. For me it's a relief to not be dependent on a framework anymore. Plus, you learn the actual workings of js in stead of being used to a facade.

Lastly, a personal note and correct me if I'm wrong - I just saw a few examples. Angular and Vue have what I call inline code which looks really messy. Like similar to an onclick= on an element. I prefer to have everything in a separate js file.

Lestah's avatar
Level 11

@ARTCORE - some of friends feel the same way too. but i don know guess i haven't tried it...

NalindaDJ's avatar

@lestah It's all depend on how your application should work and what it's functionalities. Vue is a trending framework and it gives more support for the development. Of course you can work with jQuery if the application is not very complex and simple.

Sergiu17's avatar

To use with Laravel, almost everyone will say that is Vue, there are a lot of resources, examples, tutorials with Laravel and Vue.

jlrdw's avatar

Please listen to yourselves vue needs axios to truly perform.

With axios or jQuery, ajax request and response are so much easier to perform.

Really the right technology for the task at hand.

shadrix's avatar

You can choose the framework you like, it does not matter. But I would recommend Vue since it's sooo simple to learn and you can do anything with it.

Illas's avatar

It all depends on what you want to achieve and how much JS you are going to have. If the functionality you want is more custom work, then pure JS can be a way to go. If existing frameworks do what you are after then building your own can be wasteful of your resources. If you want to achieve more complex output, Vue is recommended with Laravel. You also have to take into consideration which browsers you support. With that frameworks have done the work for you.

I personally love jQuery. Not only do we use a design framework that requires it, but it simplifies coding for us. Our needs are not that huge so it covers it nicely. Also there isn't another lightweight drag-drop library out there that can do what jQuery UI does (again, per our needs).

Please or to participate in this conversation.