public function update(StoreCompany $request, Company $id): RedirectResponse 	{ 		if ($request->company_id_picker) { 			$request->validate([	// Prevents assigning company as alias to itself 				'company_id_picker' => ['not_in:' . $id->getKey()], 			]);  			$company = Company::find($request->company_id_picker); 			$tags = $company->tags()->with('tag')->get()->map(function (TagItem $item): string { 				return $item->tag->name; 			}); 			$tags->push($id->name); 			$company->syncTagsByName($tags->implode($company->getTagDelimiter()));  			AdjustAliasedCompanyApplicantChoices::dispatchSync($id->id, $company);	// Reset UUID of old pivot table to aliased company in order to preserve votes  			$id->delete(); 		} else { 			$id->update([ 				'name' => $request->name, 				'industry' => $request->industry, 				'tax_number' => $request->tax_number, 				'domain_id' => auth()->user()->user->activeDomain?->getKey(), 				'approved' => $request->boolean('approved'), 			]);  			$id->syncTagsByName($request->tags); 		}  		return $this->redirectFromSave('companies.list'); 	}