As I've seen in many tutorials, I used the following code to be able to use the vue-router:
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::get('/{any}', function () {
return view('home');
})->where('any', '.*');
I'm using sanctum
and I would like to keep using the Auth::routes()
that comes with laravel, but they don't work anymore.
I guess I have to change the {any}
pattern with something else, but with what exactly?
Best