发布路线而不是获得拉拉维尔

问题描述 投票:0回答:1

我想删除laravel应用程序中的用户(以管理员身份)。因此,我有一条路线:Route::post('/dashboard/{id}/delete', 'Auth\Registercontroller@delete');

当我单击删除按钮时,导致该链接,我收到此错误:The GET method is not supported for this route. Supported methods: POST.我创建的路由是POST路由,所以我不知道问题出在哪里。

laravel routes
1个回答
0
投票

修改您的代码以使其看起来像这样:

© www.soinside.com 2019 - 2024. All rights reserved.