OrgChart.php references trait "PngOutputTrait" instead of "PngRenderableTrait"
Opened this issue · 0 comments
autodidact1958 commented
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.