get('/user', function (Request $request) { return $request->user(); }); Route::prefix('{locale}')->group(function (){ Route::prefix('news')->group(function (){ Route::get('/', [NewsController::class, 'getTop']); Route::get('/list', [NewsController::class, 'list']); Route::get('/detail/{id}', [NewsController::class, 'detail'])->whereIn('locale', ["tw", "en", "jp"])->where('id', '[0-9]+'); }); })->whereIn('locale', ["tw", "en"]);