Column Relationship #257
Replies: 2 comments
-
i think u can just use like this..
hope it answers yours... |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is present in v2+ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this on users model
public function addresses()
{
return $this->hasMany(Address::class);
}
Inside my table component i have
public function query(): Builder
{
return User::with('addresses');
}
but i don't see the related column on the view
Column::make('Phone', 'addresses.phone')
What i am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions