public function validate(string $attribute, mixed $value, Closure $fail): void 	{ 		if (!$this->category instanceof Category) { 			return; 		}  		if (!$this->category->isRecursive($this->category_id)) { 			return; 		}  		if (!$this->category_id) { 			return; 		}  		$fail('validation.custom.categories.recursive-rule')->translate(); 	}