->beforeReplicaSaved(function (Application $record) { $record['examination_id'] = null; $record->save();})