我的路线
Route::post('stoeBulkDealer', ['uses' => 'uploadDealerInfoController@stoeBulkDealer', 'as' => 'stoeBulkDealer']);
当我输入浏览器时
http://localhost/bikeTest/public/stoeBulkDealer
然后它在RouteCollection.php第218行显示错误MethodNotAllowedHttpException:
我不想显示此错误。我想在任何一个类型
时重定向错误页面答案 0 :(得分:0)
更改路线方法发布以获取
Route::get('stoeBulkDealer', ['uses' => 'uploadDealerInfoController@stoeBulkDealer', 'as' => 'stoeBulkDealer']);