Skip to content

Commit

Permalink
Merge pull request #34 from designvoid/designvoid-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored Jun 8, 2022
2 parents 3bebcf7 + 00e23e2 commit 2daa930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/usage/accessing-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/setting-initial-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2daa930

Please sign in to comment.