Open galliroberto opened 1 month ago
Not really sure what is going on here and what do you want to achieve, but you are using package wrong. You should pass a class to ->manager()
method, not XYZRelationManager::make([])
Are you sure?
I see your code, you put RelationManagerConfiguration in view
$normalizeRelationManagerClass = function (string | Filament\Resources\RelationManagers\RelationManagerConfiguration $manager): string {
if ($manager instanceof \Filament\Resources\RelationManagers\RelationManagerConfiguration) {
return $manager->relationManager;
}
return $manager;
};
However in this way you can pass property to RelationManager
Yes. This part is inherit from filament source code.
Method manager()
accept string or Closure which must return string that must be equal relation manager class.
public function manager(string | Closure $relationManager): static
{
$this->relationManager = $relationManager;
return $this;
}
What happened?
Cannot use RelationManagerConfiguration
How to reproduce the bug
Please add RelationManagerConfiguration
inside both view use getProperties() instead protected properties
Package Version
1.0.2
PHP Version
8.3
Laravel Version
11
Filament Version
3.2.92
Notes
No response