Relation Manager Not beeing Rendered

I have one week experience with filament and i created some relation managers for test, but none of them are working... Here is DocumentosRelationManager as example. My first step to create was use this command:
php artisan make:filament-relation-manager AlunoResource documentos in_entidade_id
php artisan make:filament-relation-manager AlunoResource documentos in_entidade_id
My second step was add the manager in my resource AlunoResource:
public static function getRelations(): array
{
return [
RelationManagers\DocumentosRelationManager::class
];
}
public static function getRelations(): array
{
return [
RelationManagers\DocumentosRelationManager::class
];
}
Did i miss something? It seems like is not beeing rendered att all. it does not show any error, but it does not appear on screen. Even if i change $relations variable in DocumentosRelationMager to a nonexistent one, nothing happens. Here is Gists with full code and thank you for time: https://gist.github.com/JonatasBSM/e45c64aaf0d4b2e5bc184d5211e26da0
Gist
Relation Manager not Rendering
Relation Manager not Rendering. GitHub Gist: instantly share code, notes, and snippets.
Solution:
Relationship managers only show on the edit or view page. Not sure where you are expecting to see it.
Jump to solution
5 Replies
Solution
awcodes
awcodes3mo ago
Relationship managers only show on the edit or view page. Not sure where you are expecting to see it.
JonatasBraz
JonatasBraz3mo ago
oof, i expected to see it on create. i created a test few minutes ago and realized this. i'll try to workaround. Thank you!
awcodes
awcodes3mo ago
Yea. It can’t exist on create because there is no record yet to associate or attach the relationship to. Glad you figured it out though.
JonatasBraz
JonatasBraz3mo ago
your very, kind! thank you again!
awcodes
awcodes3mo ago
No worries.
Want results from more Discord servers?
Add your server