F
Filament9mo ago
Dimmm

Cant edit variable inside custom page class in blade

i have a custom page which has public variable inside it. I wanted to make it accessible in the view, and it worked. But when i wanted to update the value using wire:model, the value in the custom page class wont change. how can i bind the variable of the filament custom page class to a input / select in the view ?
3 Replies
Vp
Vp9mo ago
can you share some codes
Dimmm
DimmmOP9mo ago
hey @Vp , thanks for replying to my question. Turns out the variable might be updated when i executes a function inside my filament page class (which i previously didnt do) so i put wire:click on my button that executes a function in the page class, and the variable got updated.
Vp
Vp9mo ago
yeah make sense, unless you provide wire:model.live it cannot update while typing
Want results from more Discord servers?
Add your server