Skip to content

some function to bypass validation #12

@vheins

Description

@vheins

Is your feature request related to a problem? Please describe.
I need to define validation rule on every model but some time i need to by pass that

Describe the solution you'd like
Maybe you can add some chaining function to skip validation and use like this

//this is current usage with validation rule enabled
MyModel::create(['name'=>'jhon doe');

//code if validation ignored / skip
MyModel::skipValidation()->create(['name'=>'jhon doe');

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
i try to make pull request but my knowledge its limited caus its using boot() on model i dont know to parsing variable to boot() method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions