public function update(StoreBlog $request, Blog $id): RedirectResponse 	{ 		$default_language = new Language;  		$current_market = auth()->user()->user->getActiveMarket();  		$slug_field_name = Blog::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:150', new UniqueTranslatableField($id, $slug_field_name)], 			]); 		}  		$id->update([ 			'market_id' => getCurrentMarket()->id, 			'title' => $request->title, 			'slug' => $request->slug, 			'short_description' => $request->short_description, 			'body' => $request->body, 			'author' => $request->author, 			'external_url' => $request->external_url, 			'blog_category_id' => $request->blog_category_id, 			'published_at' => formatTimestamp($request->published_at, 'Y-m-d H:i:s', $request->user()->timezone), 		]);  		$id->storage()->handle($request->media);  		return $this->redirectFromSave('blogs.list'); 	}