Listing multiple values for a relationship with another attribute
Original message was deleted
->withPivot() looks like in the pet model, for example->withPivot()use Filament\Tables;
public function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('name'),
Tables\Columns\TextColumn::make('role'),
]);
}return $this->belongsToMany(Diagosis::class)->withPivot('type');