Relation managers (Hide on edit page)
Hi All,
Maybe I looked over it, but how can i hide the Relation tables on the edit page of the parent record?
It needs to be vissble only on the view of the parent.
Thanks.
Solution:Jump to solution
On the EditRecord Page add:
```php
protected function getRelationManagers(): array
{
return [];...
6 Replies
I am not sure I follow, please explain a bit more
View : https://filamentphp.com/docs/3.x/panels/resources/viewing-records
Show de relations attached to it.
Edit : https://filamentphp.com/docs/3.x/panels/resources/editing-records
Hide de relations attached to it.
So it will only show me the form of the company and no contacts / projects raltions
You know we can't view them right?
So you want to hit the relation manage on the edit page
Changed the urls to documentation pages of viewing /editthing.
Yes, i want to hide the ralation manager on the edit page.
Solution
On the EditRecord Page add:
Does that work
Is it that easy..
Yes it works if i make function
public
,
Thanks