php - Laraver routing error
926
I have weird route error in Laravel. Stucked fixing it. Here is my action (it is in simplified version).
public function ibf() {
$existing_board_id = Input::get('existing_board_id');
...
return Redirect::route('board.index')->with('success', 'Board is successfully imported.');
}
Form, here $board is new Model, not saved one, but with pre-defined values.
{{ Form::model($board, ['route' => 'board.ibf', 'method' => 'POST', 'class' => 'form-horizontal']) }}
routes.php
Route::group(array('prefix' => 'board'), function() {
Route::post('/ibf/', array(
'as' => 'board.ibf',
'uses' => '[email protected]'
));}
Error:
protected function methodNotAllowed(array $others)
{
throw new MethodNotAllowedHttpException($others);
}
Everything looks simple, but I really dont understand the problem.