title: Getting MethodNotAllowedException using laravel 5
body: <p>Hi I'm new to Laravel and im following the laracasts on view partials and form reuse.</p>
  
  <p>I am getting to an edit page fine. The html looks like this:</p>
  
  <pre><code>@extends('app')
  
  @section('content')
  &lt;h1&gt;Edit: {!! $edu_content-&gt;title !!} &lt;/h1&gt;
  
  {!! Form::model($edu_content, ['method' =&gt; 'PATCH', 'url' =&gt; 'edu_contents/' . $edu_content-&gt;id ]) !!}
  &lt;div class="form-group"&gt;
      {!! Form::label('title', 'Title:') !!}
      {!! Form::text('title', null, ['class' =&gt; 'form-control']) !!}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      {!! Form::label('tags', 'Tags:') !!}
      {!! Form::text('tags', null, ['class' =&gt; 'form-control']) !!}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      {!! Form::label('user_id', 'User ID:') !!}
      {!! Form::text('user_id', null, ['class' =&gt; 'form-control']) !!}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      {!! Form::label('location', 'Location:') !!}
      {!! Form::text('location', null, ['class' =&gt; 'form-control']) !!}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      {!! Form::label('file_size', 'File Size:') !!}
      {!! Form::text('file_size', null, ['class' =&gt; 'form-control']) !!}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      {!! Form::label('uploaded_at', 'Created On:') !!}
      {!! Form::input('date','uploaded_at', date('Y-m-d'), ['class' =&gt; 'form-control']) !!}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      {!! Form::submit('Add Edu content!', ['class' =&gt; 'btn btn-primary form-control']) !!}
  
  &lt;/div&gt;
  {!! Form::close() !!}
  
  @if ($errors-&gt;any())
  &lt;ul class="alert alert-danger"&gt;
      @foreach ($errors-&gt;all() as $error)
      &lt;li&gt;{{ $error }}&lt;/li&gt;
      @endforeach
  
  &lt;/ul&gt;
  @endif
  
  @stop
  </code></pre>
  
  <p>When I view the page source, however, it says <code>action="http://localhost/edu_contents"</code> rather than <code>action="http://localhost/edu_contents/5"</code> like it should.</p>
  
  <p>Then when I submit the form to update I get:</p>
  
  <pre><code> MethodNotAllowedHttpException in RouteCollection.php line 201:
   in RouteCollection.php line 201
   at RouteCollection-&gt;methodNotAllowed(array('GET', 'HEAD', 'POST')) in RouteCollection.php line 188
   at RouteCollection-&gt;getRouteForMethods(object(Request), array('GET', 'HEAD', 'POST')) in RouteCollection.php line 140
   at RouteCollection-&gt;match(object(Request)) in Router.php line 744
   at Router-&gt;findRoute(object(Request)) in Router.php line 653
   at Router-&gt;dispatchToRoute(object(Request)) in Router.php line 629
   at Router-&gt;dispatch(object(Request)) in Kernel.php line 229
   at Kernel-&gt;Illuminate\Foundation\Http\{closure}(object(Request))
   at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
   at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
   at VerifyCsrfToken-&gt;handle(object(Request), object(Closure))
   at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
   at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 54
  </code></pre>
  
  <p>Can anyone explain the error and why the id does not show up in the action?</p>
  
  <p>My routes looks like <code>Route::resource('edu_contents','EduContentsController');</code></p>