JonatasBraz
JonatasBraz
Explore posts from servers
FFilament
Created by JonatasBraz on 8/9/2024 in #❓┊help
Nested Relationships data not beeing saved
No description
5 replies
FFilament
Created by JonatasBraz on 8/4/2024 in #❓┊help
Disable specific relationship operations on form
I'm tring to create a form for my table Endereco.
Endereco belongs to Cidade Cidade belongs to Estado Im am using 'cidade' relation just to load data from database in my 'estado_id' input, but i don't want to change anything about this relationship when sending the form. I tried to pass false as second argument of relationship() method, but it tried to delete the row instead of doing nothing. Here is the gist with my form: https://gist.github.com/JonatasBSM/4a4df444ad0b71c43fbb8ed703f4cc2b
4 replies
FFilament
Created by JonatasBraz on 7/29/2024 in #❓┊help
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
9 replies