为了账号安全,请及时绑定邮箱和手机立即绑定

MethodNotAllowedHttpException in RouteCollection.php

什么情况

MethodNotAllowedHttpException in RouteCollection.php line 219:

in RouteCollection.php line 219

at RouteCollection->methodNotAllowed(array('GET', 'HEAD')) in RouteCollection.php line 206

at RouteCollection->getRouteForMethods(object(Request), array('GET', 'HEAD')) in RouteCollection.php line 158

at RouteCollection->match(object(Request)) in Router.php line 750

at Router->findRoute(object(Request)) in Router.php line 659

at Router->dispatchToRoute(object(Request)) in Router.php line 635

at Router->dispatch(object(Request)) in Kernel.php line 236

at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))

at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139

at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50

at VerifyCsrfToken->handle(object(Request), object(Closure))

at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124

at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49

at ShareErrorsFromSession->handle(object(Request), object(Closure))

at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124

at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62

at StartSession->handle(object(Request), object(Closure))

at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124

at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37

at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))

at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124

at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59

at EncryptCookies->handle(object(Request), object(Closure))

at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124

at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44

at CheckForMaintenanceMode->handle(object(Request), object(Closure))

at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124

at Pipeline->Illuminate\Pipeline\{closure}(object(Request))

at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103

at Pipeline->then(object(Closure)) in Kernel.php line 122

at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87

at Kernel->handle(object(Request)) in index.php line 54


正在回答

4 回答

在method的方法里面要用get ,post会报错

0 回复 有任何疑惑可以回复我~

你在路由里面看看路由获取方式是get还是post

0 回复 有任何疑惑可以回复我~

因为路由用的get?

0 回复 有任何疑惑可以回复我~

额,解决了

0 回复 有任何疑惑可以回复我~
#1

qq_O0_0

怎么解决的,我也遇到这个问题
2017-08-27 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

MethodNotAllowedHttpException in RouteCollection.php

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信