public function truncate() { foreach ($this->grammar->compileTruncate($this) as $sql => $bindings) { $this->connection->statement($sql, $bindings); } }
/** * Run a truncate statement on the table. */ public function truncate() { parent::truncate(); $this->handler->setBuilder($this)->setValues([])->setSqlOperation('truncate')->invalidateQuery('truncate'); }