laravel-arcanist / arcanist

🧙‍♀️ Arcanist takes the pain out of building multi-step form wizards in Laravel.
https://laravel-arcanist.com
MIT License
403 stars 32 forks source link

It is not possible to access shared data in the step class #14

Closed rabol closed 3 years ago

rabol commented 3 years ago

The wizard have the SharedData, which should be shared for all step, but in a step it is not possible to get the data

ksassnowski commented 3 years ago

The shared data is meant for the views, not the step classes. It gets merged together with the viewData of a step. So it's available inside your template as part of the $step variable.