Why does this evaluation not take effect on a component?

I have this function inside ->disabled() method but isn't taking effect.
Toggle::make('is_private')
->onColor('success')
->onIcon('tabler-spy')
->label('Privado')
->live(true)
->disabled(fn(Get $get) => $get('session_commission_id') == '2')
->columnSpan([
'sm' => 1
]),
Toggle::make('is_private')
->onColor('success')
->onIcon('tabler-spy')
->label('Privado')
->live(true)
->disabled(fn(Get $get) => $get('session_commission_id') == '2')
->columnSpan([
'sm' => 1
]),
This is part of a action form with CreateAction::class, in any case, is there any way to obtain a object of components (or individual) and handle it separately?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server