MethodNotAllowedHttpException in RouteCollection.php line 218:4
<p>I will get MethodNotAllowedHttpException when submitting a form in laravel </p>

<p>Html file</p>

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

<p>routes.php</p>

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

<p>NotesController.php</p>

<pre><code>namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;

class NotesController extends Controller
{
    public function store()
    {
        return request()-&gt;all();
    }
}
</code></pre>