1👍
✅
its because you just get one parameter in laravel route so its doesnt detect it. you have two solution one is accept all parameters like this:
Route::get('/{any?}', function () {
return view('welcome');
})->where('any', '.*');
second is use fallback route here more details https://laravel.com/docs/routing#fallback-routes
👤TEFO
Source:stackexchange.com