F
Filament2d ago
MZX

Hide a table column if its in a relation manager.

How would I go about it in Filament v4? So I have ProductResource and ProductItem Resource. I have a relation manager for ProductItems in ProductView page, but since its using the same table from ProductItem, its also showing the columns of the parent (Product), which can already be seen on top on the view page, hence making it redundant.
Solution:
Found it.
->hidden(fn ($livewire) => $livewire::class === ConsumersRelationManager::class)
->hidden(fn ($livewire) => $livewire::class === ConsumersRelationManager::class)
...
Jump to solution
1 Reply
Solution
MZX
MZX2d ago
Found it.
->hidden(fn ($livewire) => $livewire::class === ConsumersRelationManager::class)
->hidden(fn ($livewire) => $livewire::class === ConsumersRelationManager::class)

Did you find this page helpful?