kevinkhill / lavacharts

Lavacharts is a graphing / charting library for PHP 5.4+ that wraps Google's Javascript Chart API.
http://lavacharts.com
Other
619 stars 142 forks source link

Undefined type "Lava" error #347

Open kellydeal opened 1 year ago

kellydeal commented 1 year ago

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.