<?php use Illuminate\Support\Facades\Route; /*…
- User
- Assistant
To solve the conflict between the/test1route and the wildcard route/{vue_capture?}, you need to define the/test1route before the wildcard route. Routes are matched in the order they are defined, and Laravel stops looking for matching routes as soon as it finds one.
Here's how you can modify your routes to ensure that/test1is matched before the wildcard route:
────────────────────────────────────────────────────────────────────
codeuse Illuminate\Support\Facades\Route;
/* Web Routes -------------------------------------------------------------------------- Here is where you can register web routes for your application. These routes are loaded by the RouteServiceProvider and all of them will be assigned to the "web" middleware group. Make something great! */ Routeget('/test1', function () { return "test1"; });
Routeget('/{vue_capture?}', function () { return view('welcome'); })->where('vue_capture', '[/\w.-]*');
- User
very nice problem solved !
- Assistant
I'm glad to hear that the solution worked for you! If you have any more questions or need further assistance, feel free to ask. I'm here to help!