Custom form component
Hello there,
For a field called main_subject_id, I created a custom form component and added a Livewire component. The reason is because the user should be able to collapse a tree (built on the nested-set package, see screenshot) and choose a certain value . I have the frontend working but I don't know how to write the chosen value to the DB when submitting.
If I understand correctly, I have to bind the new value to the Alpine js variable?
I have this now in my form component file:
For a field called main_subject_id, I created a custom form component and added a Livewire component. The reason is because the user should be able to collapse a tree (built on the nested-set package, see screenshot) and choose a certain value . I have the frontend working but I don't know how to write the chosen value to the DB when submitting.
If I understand correctly, I have to bind the new value to the Alpine js variable?
I have this now in my form component file:
