How use Public Var inside Action
how i can use public var inside a action something like this
->suffixAction(
FormAction::make('sendOPT')
->icon('heroicon-m-clipboard')
->label('ارسال کد تایید')
->requiresConfirmation()
->action(function (Set $set, $state) {
$this->send_opt = true;
})
)
2 Replies