Db::commit()
You can use if (Db::commit()) {
Operations that occur only if the MySQL operation is successful
}