KoolReport's Forum

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

Implement dashboard in laravel #3461

Open saiful opened this topic on on Oct 24 - 1 comments

saiful commented on Oct 24

Hello KoolReport Team,

I am experiencing a critical issue when trying to run the Dashboard Framework in a new, clean Laravel 11 project. The application fails immediately upon booting with the generic message "Something went wrong", even though APP_DEBUG=true. No stack trace is displayed, and nothing is recorded in storage/logs/laravel.log

this is my project strucuture:

when i run the code, there's an error with no any additional information:

and when i trace the code, the error start from here:


    protected function dashboards()
    {
        // dd('DASHBOARDS FUNCTION REACHED'); --> OK
        return [
            // SalesDashboard::class, 
            ProductResource::class,
        ];  # --> error here

    }
Sebastian Morales commented 3 days ago

I think you should use Dashboard app's create and run like this:

    protected function dashboards()
    {
        // dd('DASHBOARDS FUNCTION REACHED'); --> OK
        App::create()->run();
    }

Let us know if there is any issue.

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

Dashboard