© 2026 Hedgehog Software, LLC
class Drug extends Model { public function routes(): BelongsToMany { return $this->belongsToMany(Route::class); } } class Route extends Model { protected function test(): Attribute { return Attribute::make(get: fn () => 'test'); } }
TextColumn::make('routes.id')
TextColumn::make('routes.test')
TextColumn::make('routes')->getStateUsing( fn (Model $model) => $model ->routes ->pluck('test') ->join(', ') )