Using eager loaded relationships in custom table column views
Hi all
I have a custom table column that needs to use relationship data. I can access data using
Any ideas how I can solve that?
Cheers
I have a custom table column that needs to use relationship data. I can access data using
$getRecord()->user()->name . The problem is this isn't eager loaded so I get an extra query for every table row.Any ideas how I can solve that?
Cheers
Solution
I mean you add the dot with the relation I think all the record will be available! havent tested that case actually
you can always override the query and add
you can always override the query and add
with()