kevinkhill/lavacharts

Undefined type "Lava" error

kellydeal opened this issue · 0 comments

What Version?

"khill/lavacharts": "^3.1" (3.1.14)
"laravel/framework": "^9.19" (v9.52.4)

config\app.php

'providers' => [ ... Khill\Lavacharts\Laravel\LavachartsServiceProvider::class, ... ]
'aliases' => [ ... 'Lava' => Khill\Lavacharts\Laravel\LavachartsFacade::class, .. ]

Controller
$graph = \Lava::DataTable();
\Lava::LineChart(...

Issue

I have installed Lavacharts according to the instructions for Laravel using composer and am getting an undefined type error using Lava and Class "App\Http\Controllers\Lava" not found error. I have tried with both Lava:: and \Lava:: and get the same errors. I have tried with use Khill\Lavacharts\Lavacharts; and use Khill\Lavacharts\Lavacharts as Lava and use Lava; in the Controller and get the errors as well.