public function data(): array
    {
        if (empty($this->data) && ! empty($this->model)) {
            $this->buildRowsFromModel($this->model);
        }

        return $this->data;
    }
public function data(): array
    {
        if (empty($this->data) && ! empty($this->model)) {
            $this->buildRowsFromModel($this->model);
        }

        return $this->data;
    }
public function data ( ) : array { if ( empty ( $ this -> data ) && ! empty ( $ this -> model ) ) { $ this -> buildRowsFromModel ( $ this -> model ) ; } return $ this -> data ; }
Get raw data.

@throws \InvalidArgumentException

@return array
Get raw data .