Skip to content

OrgChart.php references trait "PngOutputTrait" instead of "PngRenderableTrait" #344

@autodidact1958

Description

@autodidact1958

What Version?

3.1.14

Issue

Build an OrgChart.
Laravel (8.0) throws error "Trait 'Khill\Lavacharts\Support\Traits\PngOutputTrait' not found"

Controller Code (chart creation code)

Normal code. I fixed the problem (see below)

View Code

khill/lavacharts/src/Charts/OrgChart.php line: 5 references

"use Khill\Lavacharts\Support\Traits\PngOutputTrait as PngRenderable;"

that is unknown. 

Solution

Change line 5 to


"use Khill\Lavacharts\Support\Traits\PngRenderableTrait as PngRenderable;"

and all is fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions