name('demo'); // 主页 Route::get('/', [HomeController::class, 'index'])->name('home'); // 产品路由 Route::prefix('products')->group(function () { Route::get('/', [ProductController::class, 'index'])->name('products.index'); Route::get('/{id}', [ProductController::class, 'show'])->name('products.show'); }); // 视频路由 Route::prefix('videos')->group(function () { Route::get('/', [VideoController::class, 'index'])->name('videos.index'); Route::get('/{id}', [VideoController::class, 'show'])->name('videos.show'); }); // 文章路由 Route::prefix('page')->group(function () { Route::get('/', [PageController::class, 'list'])->name('page.list'); // 页面列表页 Route::get('/{slug}', [PageController::class, 'detail'])->name('page.detail'); // 页面详情页 }); // 询盘路由 Route::prefix('contact')->group(function () { Route::get('/', [ContactController::class, 'create'])->name('contact.create'); Route::post('/', [ContactController::class, 'store'])->name('contact.store'); });