public function storeDiscountItems(): void 	{ 		$this->items->each(function ($item) { 			$item->delete(); 		});  		if (is_array(request()->categories)) { 			foreach (request()->categories as $category) { 				$this->items()->create([ 					'item_type' => Category::class, 					'item_id' => $category, 				]);  				$subcategories = Category::find($category)->children;  				/** 				 * @var Category $subcategory 				 */ 				foreach ($subcategories as $subcategory) { 					$this->items()->create([ 						'item_type' => Category::class, 						'item_id' => $subcategory->id, 					]); 				} 			} 		}  		if (is_array(request()->products)) { 			foreach (request()->products as $product) { 				$this->items()->create([ 					'item_type' => Product::class, 					'item_id' => $product, 				]); 			} 		} 	}