updated_uuid = $data['updated_uuid']; $prefix->prefix = $data['prefix'] ?? $prefix->prefix; $prefix->display_style = $data['display_style'] ?? $prefix->display_style; if($prefix->save()) { $prefix->forums()->sync($data['forums'] ?? []); return true; } return false; } }