0
вот мой ContactController.php:MethodNotAllowedHttpException Laravel 4,2 ошибка
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'=>'[email protected]'));
Вот мой 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() }}
Что я сделал не так?