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.

People are also looking for solutions to the problem: php - Codeigniter on subdomain linking stylesheets and javascripts

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.