Skip to content

模型视图_数据验证问题 #845

Description

@comxza

1、文档中 $this->data($data)=->save();data 方法只传递了一个参数 、此时他并不会走验证 因为 第二个参数 $validate 默认是 false 需要手动传递true 才行

Image Image 2、这个 validate 方法中->check($data)现在默认传递了 data 是否可以考虑增加第二个 参数 ‘array | string $rules = []’ 来兼容一下自定义验证组 Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions