Relation Manager
Keep in mind RelationManager
has nothing to do with regular relations in your resource. Learn more about Filament Relation Managers.
Imagine you have a resource with a relation called accessories
. Here’s a straightforward example of defining such a relation manager:
1
2
3
4
5
6
7
8
$logger->relationManagers([
RelationManager::make('accessories')
->label('Accessory')
->fields([
Field::make('name'),
Field::make('price'),
]),
]);