How can I pull the data I saved in the Modal Form?
In this way, after saving the data in the modal form, my wizard process continues, but is there any way to bring the saved data back into the wizard outside the modal form?
I tried to explain in the photos exactly what I wanted to do.
I tried to explain in the photos exactly what I wanted to do.
Wizard::make([
Wizard\Step::make('Şirketteki Insanlar')
->schema([
Actions::make([
Action::make('star')
->icon('heroicon-m-plus')
->label('Bir Kişi Ekleyin')
->form([
Wizard::make([
Wizard\Step::make('Hesap Bilgileri')->schema([
TextInput::make('name')->label('Ad'),
TextInput::make('email')->label('mail'),
]),
])
])
->action(function (array $data, User $user): void {
$user->name=$data['name'];
$user->email=$data['email'];
$user->password=Hash::make('123456');
$user->save();
})
]),
]),Wizard::make([
Wizard\Step::make('Şirketteki Insanlar')
->schema([
Actions::make([
Action::make('star')
->icon('heroicon-m-plus')
->label('Bir Kişi Ekleyin')
->form([
Wizard::make([
Wizard\Step::make('Hesap Bilgileri')->schema([
TextInput::make('name')->label('Ad'),
TextInput::make('email')->label('mail'),
]),
])
])
->action(function (array $data, User $user): void {
$user->name=$data['name'];
$user->email=$data['email'];
$user->password=Hash::make('123456');
$user->save();
})
]),
]),

