Open KasunDilz opened 6 years ago
I've answered this a few times around some of the closed issues if you want to look.
Basically, don't create your own instances of Lavacharts
use the one, singleton instance provided by the service provider.
Replace your $lava->
with \Lava::
I've answered this a few times around some of the closed issues if you want to look.
Basically, don't create your own instances of
Lavacharts
use the one, singleton instance provided by the service provider.Replace your
$lava->
with\Lava::
I already tried this but I always have an error of Class 'App\Http\Controllers\LA\Lava' not found
did you register the package's service provider? or did it autoload properly?
yes I already did install the package in composer and include the service provider already
the this that i don't understand form the installation is this line "Finally, require('vendor/autoload.php'); in your project and you are good to go!"
Are you using Laravel or just composer?
i'm using laravel framework, but i installed the lavacharts using composer update the proceed with the service provider and facade/alias that is usually need by installation
And you still don't have the alias? Can you use app("lavacharts")
or whatever they do now to get services from the container.
I am using laravel 5.4 and i have created some charts using lava charts. And now i just need to add charts in to a single dashboard.
Issue
but here I am been stuck.
Controller Code (chart creation code)
this is my controller code
View Code