Skip to content

Can you concat a relationship model. #1079

Closed Answered by lrljoe
grafxflow asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, use the setAdditionalSelects function to select the relevant fields, you can then use them in the table.

See Manual

public function configure(): void
{
  $this->setAdditionalSelects(['locations.townName as townName', 'locations.cityName as cityName']);
}

Replies: 4 comments 3 replies

Comment options

lrljoe
Mar 2, 2023
Collaborator Sponsor

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

@lrljoe
Comment options

lrljoe Mar 2, 2023
Collaborator Sponsor

Answer selected by grafxflow
Comment options

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

lrljoe Mar 2, 2023
Collaborator Sponsor

Comment options

You must be logged in to vote
0 replies
Comment options

lrljoe
Mar 3, 2023
Collaborator Sponsor

You must be logged in to vote
0 replies
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