same relationship on multiple wizard steps
Wizard\Step::make(__('step 2'))
->schema([
Forms\Components\Group::make()
->relationship('article')
->schema([some fileds])
]),
Wizard\Step::make(__('step 3'))
->schema([
Forms\Components\Group::make()
->relationship('article')
->schema([another fields])
]),
...
public function submit(): void
{
$portal = Portal::create($this->form->getState());
$this->form->model($portal)->saveRelationships();
only step 2 is saved
Wizard\Step::make(__('step 2'))
->schema([
Forms\Components\Group::make()
->relationship('article')
->schema([some fileds])
]),
Wizard\Step::make(__('step 3'))
->schema([
Forms\Components\Group::make()
->relationship('article')
->schema([another fields])
]),
...
public function submit(): void
{
$portal = Portal::create($this->form->getState());
$this->form->model($portal)->saveRelationships();
only step 2 is saved
0 Replies