public function update(StoreNavigation $request, Navigation $id): RedirectResponse 	{ 		foreach (getCurrentLanguages() as $lang) { 			$required = ($lang === getMainActiveLanguage()) || ($lang === getDefaultLanguage());  			$this->validate($request, [ 				'slug.' . $lang => [$required ? 'required' : 'nullable', 'string', 'max:150', new UniqueTranslatableField($id, 'slug')], 			]); 		}  		$id->update([ 			'name' => $request->name, 			'slug' => $request->slug, 			'active' => $request->boolean('active'), 			'parent_id' => $request->parent_id, 			'market_id' => getCurrentMarket()->id, 			'page_id' => $request->page_id, 		]);  		return $this->redirectFromSave('navigations.list'); 	}