KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Need Help with report view #3146

Closed Hazim opened this topic on on Sep 14, 2023 - 2 comments

Hazim commented on Sep 14, 2023

I just want know why this line appear in my web view $this->dataStore('inventories')?

I have this in my InventoryReport.php:

public function setup()

{
    $this->src('database')
        ->query("SELECT * FROM inventories")
        ->pipe($this->dataStore('inventories'));
}

KoolReportController.php:

public function showReport()

{
    $report = new InventoryReport;
    $report->run();

    return view('koolreport.show', ['report' => $report]);
}

show.blade.php

<h1><Center>Inventory</Center></h1>

            {{ $report->render() }}
Sebastian Morales commented on Sep 18, 2023

The output is a data dump of the report because it can not find the view file. Pls make sure that there's a view file called exactly case sensitively InventoryReport.view.php in the same directory as InventoryReport.php.

Hazim commented on Sep 20, 2023

Yes it works, sorry for the late reply.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Laravel