TractorCow\Fluent\State\FluentState::withState
Perform the given operation in an isolated state.
On return, the state will be restored, so any modifications are temporary.
Signature
public function withState(callable
$callback )
Parameters
$callback
— callable- Callback to run. Will be passed the nested state as a parameter
Returns
- mixed
- Result of callback