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

Undefined type "Lava" error #347

Open
kellydeal opened this issue Mar 14, 2023 · 0 comments
Open

Undefined type "Lava" error #347

kellydeal opened this issue Mar 14, 2023 · 0 comments

Comments

@kellydeal
Copy link

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.

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