public function update(StoreBlogCategory $request, BlogCategory $id): RedirectResponse 	{ 		$default_language = new Language;  		$current_market = auth()->user()->user->getActiveMarket();  		$slug_field_name = BlogCategory::getSlugFieldName();  		foreach (Language::all() as $language) { 			$lang = $language->code; 			$required = ($lang === $current_market->main_language) || ($lang === $default_language->getDefaultLanguage());  			$this->validate($request, [ 				'slug.' . $lang => [$required ? 'required' : 'nullable', 'string', 'max:50', new UniqueTranslatableField($id, $slug_field_name)], 			]); 		}  		$id->update([ 			'market_id' => getCurrentMarket()->id, 			'name' => $request->name, 			'slug' => $request->slug, 			'short_description' => $request->short_description, 			'description' => $request->description, 			'active' => $request->boolean('active'), 		]);  		$id->storage()->handle($request->media);  		return $this->redirectFromSave('blog-categories.list'); 	}