We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3699836 commit dbd5e84Copy full SHA for dbd5e84
docs/pages/state-sharing.md
@@ -44,11 +44,13 @@ class UserResource extends StatefulJsonResource
44
}
45
```
46
47
-## ActiveState Facade
48
-You may also set the shared state explicitly through the `ActiveState` facade instead:
+## Facade & Helper
+You may also set the shared state explicitly through the `ActiveState` facade or the `activeResourceState` helper function instead:
49
50
```php
51
use Farbcode\StatefulResources\Facades\ActiveState;
52
53
-ActiveState::setShared('minimal');
+ActiveState::set('minimal');
54
+// or
55
+activeResourceState()->set('minimal');
56
0 commit comments