KoolReport's Forum

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

Dashboard Export with Laravel #2495

Open Christian Voß opened this topic on on Dec 15, 2021 - 4 comments

Christian Voß commented on Dec 15, 2021

Hi,

I've already integrated koolreports dashboards within my Laravel application. It all works fine, but now I'm trying to use the new dashboard export functionality. All I did so far is to follow the instruction in your documentation, trying to export a very simple test dashboard. However, when I click the export button I get a "CSRF token mismatch" exception.

I already have this function in my app.php file of the dashboard:

   protected function csrf()
    {
        return CSRF::create()
        ->name("_token")
        ->token(csrf_token());
       
    }

But it seems that the export function is using a different token. Can you please let me know if I'm doing something wrong or if the export functionality is not yet set up for Laravel application?

Thanks and best regards

Christian

KoolReport commented on Dec 15, 2021

I will report to dev.team and come back to you. Thank you very much for letting us know the issue.

Christian Voß commented on Dec 15, 2021

Thank you :)

Christian Voß commented on Jan 11, 2022

Hi, do you have any update on this please?

KoolReport commented on Jan 11, 2022

Sorry for not getting back to you on the issue. Would you mind the send us the captured image containing error message? I would like to see the full error.

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
bug
help needed

Dashboard