diff --git a/docs/usage/accessing-state.md b/docs/usage/accessing-state.md index 2480e7a..288320a 100644 --- a/docs/usage/accessing-state.md +++ b/docs/usage/accessing-state.md @@ -38,7 +38,7 @@ class MyCustomState extends State { public function deliveryAddress(): array { - $deliverStepState = $this->state()->forStep('delivery-address-step'); + $deliverStepState = $this->forStep('delivery-address-step'); return [ 'name' => $deliverStepState['name'], diff --git a/docs/usage/setting-initial-state.md b/docs/usage/setting-initial-state.md index ee2bb3e..45c7455 100644 --- a/docs/usage/setting-initial-state.md +++ b/docs/usage/setting-initial-state.md @@ -15,7 +15,7 @@ If you want to let your wizard display a specific step when it is first rendered ## Setting initial state -To let the steps start with other values than the ones hardcoded in your steps, you can pass initial state via the `initial-state` property. The value given just be an array. The key of each item needs to be the name of a step, the value an array containing the state for that step. Here's an example: +To let the steps start with other values than the ones hardcoded in your steps, you can pass initial state via the `initial-state` property. The value given must be an array. The key of each item needs to be the name of a step, the value an array containing the state for that step. Here's an example: ```blade @php