Skip to content

How to modify data attributes before method "rules" called in Request class in method prepareForValidatio? #169

@umarov-safar

Description

@umarov-safar

it is my code:

public function prepareForValidation()
    {
        $this->merge([
            'phone' => preg_replace('/[^0-9]/', '', $this->phone)
        ]);
   }

Thank you for great package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions