['sometimes', 'required_if:design.design.is_template,true', new TwigLint()], ]; return $rules; } public function prepareForValidation() { $input = $this->all(); $this->replace($input); } }