Skip to content

Undefined type "Lava" error #347

@kellydeal

Description

@kellydeal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions