MethodNotAllowedHttpException while submitting form in Laravel 5.2
<p>I need update some record and this is form action in my blade</p>

<pre><code>&lt;form class="form-vertical" role="form" method="post" action="/projects/{{ $project-&gt;id }}/collaborators/{{ $collaborator-&gt;user()-&gt;first()-&gt;id }}"&gt;
</code></pre>

<p>controller</p>

<pre><code>public function update(Request $request, $projectId, $collaboratorId)
 {
    $this-&gt;validate($request, [
            'status'  =&gt; 'required',
        ]);

        DB::table('permissions')
            -&gt;where('project_id', $projectId)
            -&gt;where('collaborator_id', $collaboratorId)
            -&gt;update(['status' =&gt; $request-&gt;input('status')]);

        return redirect()-&gt;back()-&gt;with('info','Your Permission has been updated successfully');



 }
</code></pre>

<p>routes</p>

<pre><code>Route::put('projects/{projects}/collaborators/{id}',['uses'=&gt;'ProjectCollaboratorsController@update',]);
</code></pre>

<p>when click update button generate following error</p>

<pre><code>MethodNotAllowedHttpException in RouteCollection.php line 218:
</code></pre>

<p>how can solve this</p>