但是,每当我运行测试用例时,它总是在以下错误中失败,Expected status code 200 but received404.Failed asserting that 200 is identical to 404.1) Tests\Feature\CompanyTest::orgTest
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: POSTdomainna
我得到了这个POST路由,但是如果有人在浏览器上尝试这个地址,它就会变成一个GET路由,并且laravel会抛出一个错误。有没有办法在POST路由上为GET请求抛出一个404页面。Route::post('/step2Validate', 'StepController@step2Validate'); If this route