Max Maximilian
Max Maximilian

Reputation: 600

Laravel + VueJs: MPA architecture

I've created a website using Laravel+VueJs.

And there is a little issue in my understanding about which architecture of routing is better to use. Now this app has the following structure:

That system works fine, each web page is loading lib.js file which contains every library or frameworks needed for frontend. It has around 700KB when minified by the webpack. Then we have smaller javascript files (2-3 KB each) for each web page. In general, each page loads 2-3 javascript files.

In conclusion, I wanted to know if it is a good architecture and whether should I consider to use it in the future or should I use a different type of structure. If it's not a good option, then which would be the best choise and what technology / plugin should I use?

Upvotes: 0

Views: 602

Answers (1)

if you app is going to be SPA I advice you to :

  • use laravel routing for API
  • use vue-router for your application navigation

Upvotes: 2

Related Questions