Disclaimer: this is not entirely a programming question, i am asking for your opinions. In case this post does not belong here, please let me know and I will remove it.
I am on the process of planning a rather big app using Laravel and VueJS. My main question is what is the best way to do it?
The app will involve users registrations, login, different user roles and permissions, profile pages etc.
Is it a good idea to use Laravel router to load the pages and create multiple Vue instances for each page? i.e. have one Vue instance handle the frontpage, have another Vue instance handle the profile page etc?
Or is it better to create one Vue instance with multiple components and use Laravel purely as API server?
Do you have any tutorials or resources that might help me decide on one approach or the other?
I would appreciate if you give me your view on this.
Thank you for reading :)
===== Update
Thanks for your replies and time you spend on this. I got another question. Lets say I decided to go with MPA and I have 1 Vue app to handle one page, is it possible to use Vue router for each page? for example '/profile page will be rendered by laravel Everything after /profile should be handled by Vue'
Now if I want VueJS to handle routing I put this in web.php
Route::get('/{any?}', function () {
return view('vueentrypoint');
})->where('any', '[\/\w\.-]*');
Can I do something like
Route::get('/profile/{any?}', function () {
return view('profileentry');
})->where('any', '[\/\w\.-]*');
Route::get('/user/{any?}', function () {
return view('userentry');
})->where('any', '[\/\w\.-]*');