This commit is contained in:
2023-04-17 11:03:22 +08:00
parent e2c6c2ae46
commit 7472217482
-1
View File
@@ -186,7 +186,6 @@ class Collection extends AbstractCollection
$model = $this->getModel();
if ($model->hasPrimary()) {
$key = $model->getPrimary();
return $model::query()->whereIn($key, $this->column($key))->delete();
}
throw new Exception('Must set primary key. if you wante delete');