I am a little confused as to why the Laravel framework ships with Vue.js.
My understanding is that Laravel is a traditional MVC framework, while Vue would be used for a SPA; these are both different application architectures, so how can they be used together?
I am currently trying to figure out whether my app is more suited to the traditional vs SPA styles of development and this is something that I am struggling to get my head around.
With Laravel, you can easily build either a SPA or MPA or both of them in one project!
In older versions of Laravel, Vue was set up automatically with every new installation. However, in newer versions you have to set it up yourself. Luckily, the laravel/ui package provides an easy way to set up Vue in your Laravel application.
Laravel is PHP's fastest-growing Framework with its ease of use, scalability, and flexibility. VueJS is the fastest growing Front end Library in the Javascript community. Laravel is providing VueJS support out of the box. So let us get up and running with the Laravel VueJS tutorial.
Using a SPA with an MVC is a common approach as it allows full server side logic to be expressed in the app, and a responsive, application-like user interface on the front end. Often, that involves using the MVC stack to manage the DB and generate JSON responses, while letting the entire UI live in the SPA.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With