code: public function tree($trans = false)
      {
          $tree = [];
  
          foreach ($this->items as $date => $log) {
              /* @var \Orchid\Log\Entities\Log $log */
              $tree[$date] = $log->tree($trans);
          }
  
          return $tree;
      }
docs: Get logs tree.
  
  @param bool $trans
  
  @return array