Preventing the display of a related resource on a view or edit page.
How can I prevent the display of a resource on either a view or an edit page?
Solution:Jump to solution
You may override the getRelationManagers() method of the View or Edit page and return an empty array to disable the display
```php
public function getRelationManagers(): array
{...
4 Replies
Can you give more information?!
Hi, @Dennis Koch - thanks for responding. When I use
make:filament-relation-manager
to create a related resource, that resource appears under the content of both the view
and the edit
pages. I'd like to be able to control the display of the related data to be on one or both of those pages.Hm I understand now, but I am not sure whether/how that works. Sorry
Solution
You may override the getRelationManagers() method of the View or Edit page and return an empty array to disable the display