我正面临laravel 5路由

时间:2017-01-28 11:54:51

标签: php laravel-5.2

我的路线

Route::post('stoeBulkDealer', ['uses' => 'uploadDealerInfoController@stoeBulkDealer', 'as' => 'stoeBulkDealer']);

当我输入浏览器时

http://localhost/bikeTest/public/stoeBulkDealer

然后它在RouteCollection.php第218行显示错误MethodNotAllowedHttpException:

我不想显示此错误。我想在任何一个类型

时重定向错误页面

1 个答案:

答案 0 :(得分:0)

更改路线方法发布以获取

Route::get('stoeBulkDealer', ['uses' => 'uploadDealerInfoController@stoeBulkDealer', 'as' => 'stoeBulkDealer']);