protected function _afterRun()
    {
        foreach ($this->_formTemplateRulesToDelete as $template => $fields) {
            BlockFormRule::where('form_template', '=', $template)->whereIn('field', array_keys($fields))->delete();
        }
    }
protected function _afterRun()
    {
        foreach ($this->_formTemplateRulesToDelete as $template => $fields) {
            BlockFormRule::where('form_template', '=', $template)->whereIn('field', array_keys($fields))->delete();
        }
    }
protected function _afterRun ( ) { foreach ( $ this -> _formTemplateRulesToDelete as $ template => $ fields ) { BlockFormRule :: where ( 'form_template' , '=' , $ template ) -> whereIn ( 'field' , array_keys ( $ fields ) ) -> delete ( ) ; } }
When adding form rules clear all previous rules for any conflicting form_templates
When adding form rules clear all previous rules for any conflicting form_templates