protected function parseValidationRule($rule)
    {
        $ruleArray = array();

        $explodedRule = explode(':', $rule, 2);
        $ruleArray['name'] = array_shift($explodedRule);

        if (empty($explodedRule) || !in_array(strtolower($ruleArray['name']), static::$multiParamRules)) {
            $ruleArray['parameters'] = $explodedRule;
        } else {
            $ruleArray['parameters'] = str_getcsv($explodedRule[0]);
        }

        return $ruleArray;
    }
protected function parseValidationRule($rule)
    {
        $ruleArray = array();

        $explodedRule = explode(':', $rule, 2);
        $ruleArray['name'] = array_shift($explodedRule);

        if (empty($explodedRule) || !in_array(strtolower($ruleArray['name']), static::$multiParamRules)) {
            $ruleArray['parameters'] = $explodedRule;
        } else {
            $ruleArray['parameters'] = str_getcsv($explodedRule[0]);
        }

        return $ruleArray;
    }
protected function parseValidationRule ( $ rule ) { $ ruleArray = array ( ) ; $ explodedRule = explode ( ':' , $ rule , 2 ) ; $ ruleArray [ 'name' ] = array_shift ( $ explodedRule ) ; if ( empty ( $ explodedRule ) || ! in_array ( strtolower ( $ ruleArray [ 'name' ] ) , static :: $ multiParamRules ) ) { $ ruleArray [ 'parameters' ] = $ explodedRule ; } else { $ ruleArray [ 'parameters' ] = str_getcsv ( $ explodedRule [ 0 ] ) ; } return $ ruleArray ; }
Parses validation rule of laravel.

@param string
@return array
Parses validation rule of laravel .