src/Module.php
public function toArray()
    {
        return [
            'icon' => $this->icon,
            'title' => $this->title,
            'subtitle' => $this->subtitle,
            'fields' => $this->fields->map(function ($field) {
                return $field->toArray();
            })->all(),
            'query' => $this->query,
        ];
    }
public function toArray()
    {
        return [
            'icon' => $this->icon,
            'title' => $this->title,
            'subtitle' => $this->subtitle,
            'fields' => $this->fields->map(function ($field) {
                return $field->toArray();
            })->all(),
            'query' => $this->query,
        ];
    }
Gets all support data in an array.

@return array