Manipulate member with a button wire:click inside a ViewField in a HasForms Page
Hi I am troubling with filtering my data inside a HasForms Page. The Page got several function for collection the correct data. It implements a ViewField. On the ViewField is a button with a wire:click attribute which calls a decrease/increase function on my Page. This function should update my specific page property e.g. a date. The point is now that everytime the increase/decrease functions are called, the member is on the initial state so that after clicking increase for example 3 times it results in just a one time increasing. How can a achive that the property could be correctly updated?
Before using the HasForms Page ist was a simple laravel/blade page and here this increase/decrease mechanism works like a charm, but the requirements raised so that i need to use a HasForm Page.
Solution:Jump to solution
okay i have resolved it.. found out that the problem was that the property was wrong defined. in my ongoing process state it was declared as public Carbon $date; and initialized inside mount method. The mount method itself was correct, but Carbon $date should be ?Carbon $date;
2 Replies
Solution
okay i have resolved it.. found out that the problem was that the property was wrong defined. in my ongoing process state it was declared as public Carbon $date; and initialized inside mount method. The mount method itself was correct, but Carbon $date should be ?Carbon $date;