Skip to content

Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization #31

@tangjh

Description

@tangjh
image

Leave details empty and click Create:
image

Code below:
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('field1'),
Forms\Components\TextInput::make('field2'),
Forms\Components\TextInput::make('field3'),
\Icetalker\FilamentTableRepeater\Forms\Components\TableRepeater::make('details')
->relationship('details')
->schema([
Forms\Components\TextInput::make('field4'),
Forms\Components\TextInput::make('field5'),
Forms\Components\TextInput::make('field6')
->hidden(fn (string $operation): bool => $operation === 'view'),
]),
]);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions