Php MethodNotAllowedHttpException laravel 4.2错误

Php MethodNotAllowedHttpException laravel 4.2错误,php,laravel-4,migration,Php,Laravel 4,Migration,这是我的ContactController.php: public function destroy($id){ $contact = Contact::find($id); $contact->delete(); return Redirect::to('http://localhost:8000/contactsview'); } 这是我的rountes.php Route::delete('/contactsview/destroy/{id}', array

这是我的ContactController.php:

public function destroy($id){
    $contact = Contact::find($id);
    $contact->delete();
    return Redirect::to('http://localhost:8000/contactsview');
}
这是我的rountes.php

Route::delete('/contactsview/destroy/{id}', array('uses'=>'ContactController@destroy'));
以下是我的index.blade.php:

{{ Form::open(array('url'=>'/contactsview/delete/'.$contact->id, 'method'=>'DELETE', 'style'=>'display:inline;')) }}
<!-- {{ Form::hidden('id', $contact->id) }} -->
{{ Form::submit('Delete') }}
{{ Form::close() }}
{{Form::open(数组('url'=>'/contactsview/delete/.$contact->id,'method'=>'delete','style'=>'display:inline;'))}
{{Form::submit('Delete')}
{{Form::close()}}

我做错了什么?

尝试使用此表单,将
$contact->id
作为参数传递,而不是直接在URL中传递:

{{ Form::open(array('method' => 'DELETE', 'action' => array('ContactController@destroy', $contact->id )) }}