Include Tabs and other Layout groups #1

Closed
opened 2023-05-23 19:49:34 +00:00 by pxlrbt · 1 comment
pxlrbt commented 2023-05-23 19:49:34 +00:00 (Migrated from github.com)

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

Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
Saifallak commented 2023-05-31 17:07:20 +00:00 (Migrated from github.com)

getting the same error
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization

when using MorphToSelect

                  Forms\Components\MorphToSelect::make('billable')
                        ->label(__('Billable'))
                        ->columnSpanFull()
                        ->types([
                            Forms\Components\MorphToSelect\Type::make(Client::class)
                                ->label(__('Client'))
                                ->titleColumnName('name'),
                            Forms\Components\MorphToSelect\Type::make(Supplier::class)
                                ->label(__('Supplier'))
                                ->titleColumnName('name'),
                            Forms\Components\MorphToSelect\Type::make(Employee::class)
                                ->label(__('Employee'))
                                ->titleColumnName('name'),
                        ]),
getting the same error `Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization` when using MorphToSelect ```php Forms\Components\MorphToSelect::make('billable') ->label(__('Billable')) ->columnSpanFull() ->types([ Forms\Components\MorphToSelect\Type::make(Client::class) ->label(__('Client')) ->titleColumnName('name'), Forms\Components\MorphToSelect\Type::make(Supplier::class) ->label(__('Supplier')) ->titleColumnName('name'), Forms\Components\MorphToSelect\Type::make(Employee::class) ->label(__('Employee')) ->titleColumnName('name'), ]), ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-activity-log#1
No description provided.