Passing variable with route parameter when form is submitted Laravel 5.2
<p>I have this in my form in the viewpage.php:</p>

<pre><code>&lt;form action="{{ route('test.route'), ['id' =&gt; $params_id] }}" method="POST" &gt;
</code></pre>

<p>And this in the route.php:</p>

<pre><code>Route::post('/testing/{{id}}',[
    'uses' =&gt; 'TestController@testMethod', 
    'as' =&gt; 'test.route'
]);
</code></pre>

<p>And this is my TestController:</p>

<pre><code>public function avaliarSubordinor(Request $request, $uid){
    return $uid;
}
</code></pre>

<p>I get an error which says 'Missing required parameters for[Route: test.route] [URI: testing/{{id}}]. Essentially What i want is to pass a variable to my controller using a route with a parameter when form is submitted..  </p>

<p>I dont know if I am doing this properlly..if anyone can help me or point me to an example so i can understand what I am doing wrong..</p>