How to get record in `columns` fn
i need to generate the columns dinamically.
is this possible?
is this possible?
public static function table(Table $table): Table
{
return $table
->query(Response::latest())
->columns((function (): array {
// here i need to retrieve the record to be able to costumize the columns
$record = ??
...