title: Laravel 4 - Controller not found
body: <p>I am working on an application with laravel which saves files in database and to a destination folder. I am trying to delete a record from the database but all I get is an error which says that the controller method is not found. </p>
  
  <p>Error:</p>
  
  <pre><code>Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
  Controller method not found.
  
  throw new NotFoundHttpException("Controller method not found.");
  </code></pre>
  
  <p>The view alluploads.blade.php has a form, where it should pass the id to the uploads/destroy function.    </p>
  
  <pre><code>{{ Form::open(array('method' =&gt; 'DELETE', 'url' =&gt; array('uploads/destroy', $upload-&gt;id))) }}
       {{ Form::submit('Delete', array('class' =&gt; 'btn btn-danger')) }}
  {{ Form::close() }}
  </code></pre>
  
  <p>And my controller has the function that deletes the row. </p>
  
  <pre><code>public function getDestroy($id)
  {
       $this-&gt;upload-&gt;find($id)-&gt;delete();
       return Redirect::to('uploads/alluploads')-&gt;with('message', 'Thanks, delete was successful!');
  }
  </code></pre>
  
  <p>The routes are have the following to access functions under uploads controller </p>
  
  <pre><code>Route::controller('uploads', 'UploadsController');
  </code></pre>