我想在public / config上发布一个表单,该表单与public / config位于同一页面上,但它显示了这个错误:
Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException
形式:
<form action="config" method="POST" id="tipsterform-add" class="form-horizontal" role="form">
路线:
Route::get('config', 'ConfigController@showIndex');
Route::post('config', 'ConfigController@storeTipster');
控制器:
class ConfigController extends BaseController {
public function showIndex(){
return View::make('config');
}
public function storeTipster(){
return echo 'test';
}
}
帮帮我!