erreur
i still have erreur in this function
Tables\Columns\TextColumn::make('Books')->getStateUsing(
function ($author) {
return (string)$author->books()->count();
}
)
->sortable(),
erreur : An attempt was made to evaluate a closure for [Filament\Tables\Columns\TextColumn], but [$author] was unresolvable.
2 Replies