title: Laravel Update Route
body: <p>Laravel newbie here, I want to create an update route in Laravel, without the resource controller. 
  I have the route for the editing</p>
  
  <pre><code>Route::get('/indexedit','PagesController@indexedit')-&gt;middleware('user');
  </code></pre>
  
  <p>And in there, there is a form with the following</p>
  
  <pre><code>&lt;form class="col s12" method="POST" action="indexedit/{{ $val-&gt;id }}" &gt;
  {{ method_field('PUT') }}
  {{ csrf_field() }}
  </code></pre>
  
  <p>There are two input fields and a button for submiting. I created a route for the update which is</p>
  
  <pre><code>Route::post('indexedit/{$id}', 'PagesController@update');
  </code></pre>
  
  <p>But when I submit, it says Route not found. NotFoundHttpException in RouteCollection.php line 161:</p>