We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4849bb commit 9ab8ea4Copy full SHA for 9ab8ea4
src/Schema/Builder.php
@@ -1534,6 +1534,19 @@ public function delete($id = null)
1534
return $delete->rowCount();
1535
}
1536
1537
+ /**
1538
+ * Destroy/Delete records from the database.
1539
+ *
1540
+ * @param mixed $id
1541
+ * [default column name is 'id']
1542
1543
+ * @return int
1544
+ */
1545
+ public function destroy(string $id = null)
1546
+ {
1547
+ return $this->where('id', $id)->delete();
1548
+ }
1549
+
1550
/**
1551
* Increment a column's value by a given amount.
1552
*
0 commit comments