Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
autodidact1958 opened this issue Apr 9, 2022 · 0 comments

Comments

@autodidact1958
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant