->afterStateUpdated(function (callable $set, $state) { // Fetch debtor data based on selected ID if ($state) { $debtor = DebtorCompany::find($state); if ($debtor) { $set('debtor_identification_code', $debtor->identification_code); $set('debtor_email', $debtor->email); }