Exclude a step from progress based on some condition #2
Closed
MohmmedAshraf
started this conversation in
Ideas
Replies: 1 comment
-
Should be able to do this with the following: Onboard::addStep('Step 1')
...
->excludeIf(function ($model) {
return $model->hasFeature('offers');
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, Great package, as usual, thank you very much Spatie ❤️,
I would suggest something am working on a project that requires onboarding but based on the enabled modules,
each module has its own steps, so what I am looking for if there is an option to exclude a step from preventing the onboarding progress from being incomplete, something like this:
Update
I've already contributed this feature, see #3
Beta Was this translation helpful? Give feedback.
All reactions