folium's avatar

Which front-end framework is faster to learn with Laravel Or It's Compulsory to Learn js framework with laravel ?

Hello Everyone,

suggest me a JavaScript framework which I can easily implement as front-end with Laravel.

your advice would be greatly appreciated.

Thank you.

1 like
9 replies
tykus's avatar

It really should not matter which JS framework (or none) you use as front-end with Laravel - there is nothing special about Laravel that makes Vue preferable over React or Angular or Alpine or jQuery or...

1 like
click's avatar

I think the learning curve for Alpine.js is the lowest. Also interesting, Laravel Livewire https://laravel-livewire.com which can help you write interactive webpages without writing a single line of javascript. However, livewire might not be the best for all type of projects.

It all depends on your requirements what will fit your project the best. I have worked with both VueJS and AlpineJS and I like the simplicity of AlpineJS for my type of projects.

1 like
aurelianspodarec's avatar

I think if you want to use a JS framework with Laravel, you're going have to write an API, which means twice the work because you'll need to do things on the fornt-end that are already done via laravel and now you'll have to deal with security even more - as well as doing things like crsf via the API which is even more work etc...

I'm using Laravel with blade and vanilla JS.

If you want to learn a front-end framework you should learn it separately.

At the end of the day, if you do choose to write Laravel API, consider that being a new repository. Then what you write on the front-end doesn't matter since that is not laravel anymore - therefore you can choose whatever you like as front-end is not larvel.

Doing back-end or front-end/SPA are two separate things.

Unless you're using laravel with vue/react and including that into the blade or such but not sure if that's how you would go about it usually.

1 like
folium's avatar

@aurelianspodarec nowadays people uses laravel + vuejs more and more..so this was the reason to ask this question..

aurelianspodarec's avatar
Level 7

@folium Right. They do, however it depends what you are building.

Are you talking about Laravel and Vue in one repository where you can reference things?

Or Larvel API that's just an API, and then people can use whatever front-end technology they want for the front-end - which it wouldn't be Vue but anything they want, since that would be then working with restful API.

If you're looking to work with Laravel and VUe in one repo, it would be wise to do Vue because majority of people use Vue with laravel like that, and you'll get help easier.

But it really depends on the project requirement and what you're exactly doing.

But Id say using vue for a laravel project is probably the wisest choice for the reason above, but if you're writing an Laravel API with the fornt-end being elsewhere then might as well use react or vue it won't matter at all what you would use in that case.

1 like

Please or to participate in this conversation.