简体   繁体   中英

How to properly use Vue.js and Laravel together

I have been developing with Laravel for quite some time and I love it, However, for a new project. I would like to develop a REST API in laravel and use a frontend framework for web/smartphone use (a single backend to provide multiple interfaces).

The problem is that I know very little about the frontend and reading several course introductions, I don't know if I'm going in the right direction... I have the feeling that Vue.js is often used as a "standalone" solution to develop a web application (with its own route management, model, etc...). Which makes me get a little confuse... I was thinking of using a frontend framework to manage the "views" part and simply call my APIs.

I don't really understand in which case to use what... Do you have any useful resources that would help a backend to understand how all this works easily?

Plus, is it a good idea to learn a frontend framework to create more efficient and more easily convertible web applications to smartphones?

Thanks a lot for your help !

NuxtJS (nuxtjs.org) would be a good starting point for you.

It' a framework for vue and you can handle routing, state management, ssr (for seo) and much more with it.

Yes, it's definitely a good idea to learn a frontend framework. For mobile you should have a look at react native.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM