method() === 'PUT' || $this->method() === 'PATCH') { $unq_domain = ','.$this->cert->id; } return [ 'domain' => 'required|string|unique:node_certificate,domain'.$unq_domain, 'key' => 'string|nullable', 'pem' => 'string|nullable', ]; } }