Closed pxlrbt closed 1 year ago
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'),
]),
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization