[Vuejs]-Laravel VueJs SPA : should VueJS router routes match with Laravel routes

1👍

If you want to have a SPA and keep some of the Laravel pages you need to have a route like this:

Route::get('/{any}', 'VueController@index')->where('any', '.*');

This can be at the end of your routing file, so if it does not match the existing Laravel routes and it will open the Vue SPA and the routing will be handled from there.

Leave a comment