0👍
Your route should be like this to accept vue router
Route::get('/{view?}', function () {
return view('vue');
})->where('view', '^(?!api\/)[\/\w\.-]*');
this will accept every route exept api routes
- [Vuejs]-Laravel data dependent on selected dropdown
- [Vuejs]-Laravel 6.2 Auth-scaffold – not working but doesn't throw / log error
Source:stackexchange.com