F
Filament9mo ago
Jessy

How to get relationship from a form

$this->form->getState() result in an array with the fields of the form that are no part of a relationship. Is there a function that result in an array of the relationships?
1 Reply
LeandroFerreira
LeandroFerreira9mo ago
the relationship is auto saved. If you want to get in the array, add ->dehydrated() in the field

Did you find this page helpful?