如何使用資源控制器我的網站的路線:站點路由上的資源控制器?
Route::resource('/', 'TestController');
我打的網址:
mysite.dev/some-slug-to-get-in-controller
而且show方法不起作用,只是一個錯誤,路線犯規存在。
我檢查路由表:
GET|HEAD |/ | index | [email protected]
POST |/ | store | [email protected]
GET|HEAD | create | create | [email protected]
GET|HEAD | {} | show | [email protected]
PUT|PATCH | {} | update | [email protected]
DELETE | {} | destroy | [email protected]
GET|HEAD | {}/edit | edit | [email protected]
不工作。路由模式「/ {slug}/{{slug}}」不能多次引用變量名「slug」。 – panthro