public function toArray($request): array 	{ 		$lang = app()->getLocale();  		return [ 			'id' => $this->id, 			'name' => $this->getTranslation('name', $lang), 			'slug' => $this->getTranslation('slug', $lang), 			'featured' => $this->featured, 			'parent' => $this->parent, 			'media' => MediaResource::collection($this->getMedia('images')), 			'filters' => FilterResource::collection($this->filters), 			'children' => ChildrenCategoryResource::collection($this->children), 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}