TextColumn get relationship record

Is it possible to get the $record of the relationship of a resource when creating a TextColumn like this:
Tables\Columns\TextColumn::make('skus.price')
  ->label('Price')
  ->listWithLineBreaks()
  ->formatStateUsing(function ($state, $record) {
      \Log::info('Current record:', [$record]);
      return $state;
  }),

This was added to my ProductResource, where the above log output gives the product record. Is it somehow possible to get the sku record that the price belongs to instead?
Solution
no, there is not currently a way to do that, but you could guess which sku it is based on the price
Was this page helpful?