->columns([
Tables\Columns\TextColumn::make('name'),
Tables\Columns\TextColumn::make('urls')
->label('No. URLs')
->getStateUsing(function (Site $record) {
return count($record->urls);
}),
])
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter