我需要转换此HTML表单
{!! Form::open(['route' => ['news.destroy', $news->id], 'method' => 'delete']) !!}
<input type="submit" value="Delete" />
{!! Form::close() !!}
<div class="pull-right"><em>{{'Author - ' . $news->author }}</em></div>
到一个简单的HTML表单
我试过这个,但它没有用
<form action="{{ route('news.destroy', $news->id, ['method' => 'delete']) }}">
<input type="submit" value="delete" />
</form>
答案 0 :(得分:0)
使用此
<form method="post" action="{{ route('news.destroy', $news->id)}}" accept- charset="UTF-8">
<input type="submit" value="Delete" />
</form>