How to add morphToMany field value from the form ?

I have a file submission feature and each submission have notes which is morphic and I have to add first note during the creation of the submission
Solution
Thanks @sfrigzs I used Repeater
 Repeater::make('notes')
    ->deletable(false)
    ->addable(false)
    ->relationship('notes')
    ->schema([
        RichEditor::make('description')
            ->required()
            ->columnSpanFull(),
    ]),
Was this page helpful?