modules/api/v1/models/ForgotPassword.php
/**
     * Returns the validation rules for attributes.
     * @return array
     */
Returns the validation rules for attributes.
@return array
Returns the validation rules for attributes . @return array
public function rules()
    {
        return [
            [['email'], 'required'],
            [['email'], 'email'],
            [['email'], 'validateUser'],
        ];
    }
public function rules ( ) { return [ [ [ 'email' ] , 'required' ] , [ [ 'email' ] , 'email' ] , [ [ 'email' ] , 'validateUser' ] , ] ; }
Returns the validation rules for attributes.
Returns the validation rules for attributes .