【发布时间】:2021-12-24 07:15:31
【问题描述】:
第一条路线
Route::get('/', [HomeController::class, 'method'])->name('home.index');
第二条路线
Route::get('/{slug}', [Controller::class, 'method'])->name('view');
第三条路线
Route::get('/dashboard', [HomeController::class, 'method'])->name('home');
如何调用路由不出错??
【问题讨论】:
-
只要改变路线顺序,它就会起作用。让我知道结果。
-
感谢您的回答
-
我的prblm正在运行,现在检查我的问题,我有一些变化
-
你可以检查我的ans如下。
标签: laravel