我使用多条路由进行Laravel项目,其中有些路由是POST路由,所以当用户手动键入该路由时,它会显示它们:The GET method is not supported for this route.Supported methods: POST.
我找到了解决这个问题的方法,创建了同名但使用GET的其他路由,并使它们重定向到其他页面。,但我需要知道是否还有其他方法(一种自动化的
到目前为止,当我的用户在URL中输入POST路由时,它会显示一个错误,即The GET method is not supported for this route.\RedirectIfPOST::class,Route::group( ['middleware' => 'post@authenticate');
Route::<