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