1).
i want to know why people use two servers to make a vuejs SPA with laravel.
I think we can use the other way. Make a Route like this
Route::get('{any}', function () {
return view('index');
})->where('any' , ".*");
and let vue handle the page url.. why people are using 2 servers and then using laravel passport to authenticate when we dont need to do all this to make spa..
2).
Okay now suppose we have our spa readdy using 2 separate servers one for vue and one for laravel.
Now i don't know how to set two servers on a single remove server.?
how should i upload both vue and laravel applications on a single server on internet and make them work together.
watchandhot reloading. It does not supplant or compliment the web server outside of a development environment. And as to your question about the catch all route, you'll need that regardless as it allows direct browser navigation within the SPA.