How to use relationship in Wizard Step?

for example like this
Forms\Components\Wizard\Step::make('Profile')
->schema([
Fieldset::make()
->relationship('userProfile')
->schema([
Forms\Components\Radio::make('gender')->options([
'male' => 'Male',
'female' => 'Female',
]),
Forms\Components\Radio::make('status')->options([
'active' => 'Active',
'inactive' => 'Inactive',
]),
Forms\Components\TextInput::make('identification_number'),
Forms\Components\DatePicker::make('date_of_birth'),
Forms\Components\TextInput::make('contact_number'),
Forms\Components\TextInput::make('street_address'),
])
])
->columns(2),
Forms\Components\Wizard\Step::make('Profile')
->schema([
Fieldset::make()
->relationship('userProfile')
->schema([
Forms\Components\Radio::make('gender')->options([
'male' => 'Male',
'female' => 'Female',
]),
Forms\Components\Radio::make('status')->options([
'active' => 'Active',
'inactive' => 'Inactive',
]),
Forms\Components\TextInput::make('identification_number'),
Forms\Components\DatePicker::make('date_of_birth'),
Forms\Components\TextInput::make('contact_number'),
Forms\Components\TextInput::make('street_address'),
])
])
->columns(2),
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server