F
Filament5mo 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
Vp5mo ago
can you share some codes
Dimmm
Dimmm5mo 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
Vp5mo ago
yeah make sense, unless you provide wire:model.live it cannot update while typing