MethodNotAllowedHttpException in RouteCollection.php Zeile 218: 4

Ich erhalte eine MethodNotAllowedHttpException, wenn ich ein Formular in laravel abschicke

Html file

<form method="POST" action="/cards/{{$card->id}}/notes">
    <input name="_token" type="hidden" value="{{ csrf_token() }}"/>
    <textarea name="body" class="form-control"></textarea>
    <button type="submit">Add Note</button>
</form>

routes.php

Route::post('cards/{card}/notes','NotesController@store');

NotesController.php

namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;

class NotesController extends Controller
{
    public function store()
    {
        return request()->all();
    }
}

Antworten auf die Frage(6)

Ihre Antwort auf die Frage