Delete using Query Builder
Delete
Delete
You can create DELETE
queries using QueryBuilder
. Examples:
This is the most efficient way in terms of performance to delete entities from your database.
Soft-Delete
Soft-Delete
Applying Soft Delete to QueryBuilder
Examples:
Restore-Soft-Delete
Restore-Soft-Delete
Alternatively, You can recover the soft deleted rows by using the restore()
method:
Examples:
Last updated