laravel中不允许使用POST方法

时间:2014-10-16 17:10:23

标签: forms post laravel methods

我想在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';
}

}

帮帮我!

0 个答案:

没有答案