public function withAccessories(?Collection $accessories = null, ?int $numberOfAccessories = 3): self 	{ 		return $this->afterCreating(function (Product $product) use ($accessories, $numberOfAccessories) { 			if ($accessories === null) { 				$accessories = Product::factory()->accessory()->count($numberOfAccessories)->create([ 					'market_id' => $product->market_id, 				]); 			} 			$product->accessories()->attach($accessories->pluck('id')); 		}); 	}