Skip to content
Discussion options

You must be logged in to vote

Hey @cl3rO3Y not wrong, but you should take into consideration that you should be eager loading those relations on those models.

Otherwise you may run into issues by performing excessive amounts of queries.

Backpack automatically eager loads relationship columns, so you probably better with: $this->crud->addColumn('purchase.retailer.name')

Cheers

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pxpm
Comment options

pxpm Jan 23, 2023
Maintainer

Answer selected by jcastroa87
@cl3rO3Y
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants