> */ public function rules(): array { return [ 'remove_data' => ['required', 'boolean'], 'confirmation' => [ 'nullable', 'string', 'max:100', 'required_if:remove_data,true', Rule::in([(string) $this->route('module')]), ], ]; } }