move getRelations() to especific area on form()
Is possible change position for :
public static function getRelations(): array
{
return [
DocumentoCompsRelationManager::class,
];
}
Problem: my last item on Form are multiple pictures, so my relation "fades away" in final on page, need something like this:
Forms\Components\RichEditor::make('texto')
->required()
->columnSpanFull(),
Forms\Components\Section::make(DocumentoCompsRelationManager::class)
Forms\Components\Section::make('Imagem chamada')
->hiddenLabel()
->collapsible()
->schema([
Forms\Components\FileUpload::make('image_chamada')
->hiddenLabel()
->minSize(20)
->multiple
->maxSize(6000)
->hint('Tamanho máximo permitido: 5mb.')
->acceptedFileTypes(['image/png', 'image/jpg', 'image/jpeg'])
->directory('competicoes/chamada')
]),
How i can do?
0 Replies