How to import form schema
I'm using a separate form schema to try and cut down on repetition and mistakes,
but when i do it i have this error
Filament\Forms\ComponentContainer::Filament\Forms\Concerns{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, array given
4 Replies
You’re doubling the array.
Schema is returning an array and the $form->schema() is including inside an array.
@awcodes and how can i resolve it please
ArticleForm
Thanks for your help
$form->schema(ArticleForm::schema())
Don’t wrap article form with []
yes i see thanks a lot
resoleved