KoolReport's Forum

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

Laravel integration with models #3008

Open Joe Garvey opened this topic on on Mar 8 - 1 comments

Joe Garvey commented on Mar 8

Am I missing something with the Laravel integration?

I am trying to create a simple report with a list of users and user role.

I would expect I can use "Users::with('role')" but this only provides a list of all users.

If I user "Users::find(1)" I would expect to get the user where ID = 1 but I get all users.

Is the integration not really there? What is the best way to leverage KoopReport with Laravel?


KoolReport commented on Mar 13

Instead of User::find(1), please try User::where("id",1).

Let us know if you need further assistance.

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