Relation manager (Hide Table data from table record)
Hi All,
I use the table of the (in my case) ProjectResource.
In that table i want to hide one or 2 columns in the relation manager table.
Example of table.
The first Stack::make (with company.companyname and contact.full_name) needs to be vissible on the "ProjectResource" but Hidden in RalationsshipManager
return $table
->columns([
Split::make([
Stack::make([
TextColumn::make('company.companyname')
->weight(FontWeight::Bold)
->searchable(),
TextColumn::make('contact.full_name'),
])->grow(false),
Stack::make([
TextColumn::make('subject')
->weight(FontWeight::Bold)
->searchable(),
TextColumn::make('number')
->searchable()
->sortable(),
])->grow(false),
Solution:Jump to solution
Found the solution in the documentation : https://filamentphp.com/docs/3.x/panels/resources/relation-managers#hiding-a-shared-form-component-on-the-relation-manager
This also works with tables...
1 Reply
Solution
Found the solution in the documentation : https://filamentphp.com/docs/3.x/panels/resources/relation-managers#hiding-a-shared-form-component-on-the-relation-manager
This also works with tables