src/Classes/BaseChart.php
public function plugins($plugins, bool $overwrite = true)
    {
        if ($plugins instanceof Collection) {
            $plugins = $plugins->toArray();
        }
        if ($overwrite) {
            $this->plugins = $plugins;
        } else {
            $this->plugins = array_replace_recursive($this->plugins, $plugins);
        }

        return $this;
    }
public function plugins($plugins, bool $overwrite = true)
    {
        if ($plugins instanceof Collection) {
            $plugins = $plugins->toArray();
        }
        if ($overwrite) {
            $this->plugins = $plugins;
        } else {
            $this->plugins = array_replace_recursive($this->plugins, $plugins);
        }

        return $this;
    }
public function plugins ( $ plugins , bool $ overwrite = true ) { if ( $ plugins instanceof Collection ) { $ plugins = $ plugins -> toArray ( ) ; } if ( $ overwrite ) { $ this -> plugins = $ plugins ; } else { $ this -> plugins = array_replace_recursive ( $ this -> plugins , $ plugins ) ; } return $ this ; }
Set the plugins options.

@param array|Collection $options
@param bool             $overwrite

@return self
Set the plugins options .