src/Html/HasTable.php
public function addTableClass($class)
    {
        $class = is_array($class) ? implode(' ', $class) : $class;
        $currentClass = Arr::get(array_change_key_case($this->tableAttributes), 'class');

        $classes = preg_split('#\s+#', $currentClass . ' ' . $class, null, PREG_SPLIT_NO_EMPTY);
        $class = implode(' ', array_unique($classes));

        return $this->setTableAttribute('class', $class);
    }
public function addTableClass($class)
    {
        $class = is_array($class) ? implode(' ', $class) : $class;
        $currentClass = Arr::get(array_change_key_case($this->tableAttributes), 'class');

        $classes = preg_split('#\s+#', $currentClass . ' ' . $class, null, PREG_SPLIT_NO_EMPTY);
        $class = implode(' ', array_unique($classes));

        return $this->setTableAttribute('class', $class);
    }
public function addTableClass ( $ class ) { $ class = is_array ( $ class ) ? implode ( ' ' , $ class ) : $ class ; $ currentClass = Arr :: get ( array_change_key_case ( $ this -> tableAttributes ) , 'class' ) ; $ classes = preg_split ( '#\s+#' , $ currentClass . ' ' . $ class , null , PREG_SPLIT_NO_EMPTY ) ; $ class = implode ( ' ' , array_unique ( $ classes ) ) ; return $ this -> setTableAttribute ( 'class' , $ class ) ; }
Add class names to the "class" attribute of HTML table.

@param string|array $class
@return $this
Add class names to the class attribute of HTML table .