路线
$router->resource('sessions', SessionController::class);
表格。 $ name_route_remove2-session.destroy
<form method="destroy" action= {{ route($name_route_remove2,['id'=>$entity->id]) }}>
@csrf
<button class="btn btn-danger removeEntity entityButton">Удалить</button></form>
表单呈现
<form method="delete" action="http://kasperskycms/admin/sessions/10">
<input type="hidden" name="_token" value="WSgrwgTDJ4z3QDnqSetKPwbKYi9vYNhw5nqbUI9j"> <button class="btn btn-danger removeEntity entityButton">Удалить</button>
</form>
点击按钮后,转到链接查看而不是删除