Intended usage of `::configure()` in v4
Often in a resource, I'll want to embed a form schema in a Section component. If I define my form as its own schema using
php artisan make:filament-schema
, how can I then put it in a section in the public function form(Schema $schema): Schema
method in the resource without causing an infinite loop, given the configure
call modifies the very object it is embedding itself in?2 Replies
Previously in v3, for forms and infolists, I had a single
public static function make(): array
that would return the child components, preventing the recursion problem.which part is recursion? i don't understand
the
form()
method calls configure()
, passes the object. the configure()
method accepts the object, modifies it, and returns it back to form()