Use $rawTable instead of $t in the raw query that inserts new nodes into closure_table.
Removed DB::transaction call now that there's only one query within ClosureTable::insertNode.