F
Filament7mo ago
Sydd

Relation manager only on view page

Guys, please let me know if is possible to display relation manager table only on main resource view page, (disabled on edit page). Thanks for answers.
Solution:
@FK21 you are right, thanks for advice. Only one small additional, it's must be public:
protected function getRelationManagers(): array
{
return [];
}
protected function getRelationManagers(): array
{
return [];
}
...
Jump to solution
3 Replies
awcodes
awcodes7mo ago
Add it to the ListRecord class and don’t register it on the Resource class.
Expecto Patronum
You can add this into your editfile resource protected function getRelationManagers(): array { return []; }
Solution
Sydd
Sydd7mo ago
@FK21 you are right, thanks for advice. Only one small additional, it's must be public:
protected function getRelationManagers(): array
{
return [];
}
protected function getRelationManagers(): array
{
return [];
}
Want results from more Discord servers?
Add your server