F
Filament9mo ago
Jessy

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
how can I make step 2 and 3 as a single relationship?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?