I install koolreport in Laravel using composer I am getting this error now
There is no source available, please add at least one in the settings()
This is my model
<?php
namespace App\Reports;
use Illuminate\Database\Eloquent\Model;
class HiveReport extends \koolreport\KoolReport
{
// By adding above statement, you have claim the friendship between two frameworks
// As a result, this report will be able to accessed all databases of Laravel
// There are no need to define the settings() function anymore
// while you can do so if you have other datasources rather than those
// defined in Laravel.
function setup()
{
// Let say, you have "sale_database" is defined in Laravel's database settings.
// Now you can use that database without any futher setitngs.
$this->src("mysql")
->query("SELECT * FROM users")
->pipe($this->dataStore("users"));
}
}
(I also tried default and the db name)