Skip to content

Error Column #1255

Closed Answered by lrljoe
tatuananhnb2608 asked this question in Q&A
Jun 24, 2023 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

Yep, model is a string.

You can use setAdditionalSelects in your configure() method to add extra fields in that you want to use in labels/formats.

e.g.

        $this->setPrimaryKey('id')
            ->setAdditionalSelects(['users.id as id', 'users.profile_photo_path as profile_photo_path']);

Then you can reference those fields in your labels/formats under the $row->fieldName approach

Replies: 4 comments 3 replies

Comment options

lrljoe
Jun 24, 2023
Collaborator Sponsor

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lrljoe
Comment options

lrljoe Jun 25, 2023
Collaborator Sponsor

Answer selected by tatuananhnb2608
Comment options

You must be logged in to vote
1 reply
@lrljoe
Comment options

lrljoe Jun 25, 2023
Collaborator Sponsor

Comment options

You must be logged in to vote
1 reply
@lrljoe
Comment options

lrljoe Jun 25, 2023
Collaborator Sponsor

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