protected function registerValidationRules($validator)
    {
        /**
         * elfinder validator
         */
        $validator->resolver(function($translator, $data, $rules, $messages)
        {
            return new BaseValidator($translator, $data, $rules, $messages);
        });
        $validator->replacer('elfinder_max', function($message, $attribute, $rule, $parameters) {
            return str_replace(':size',$parameters[0],$message);
        });
        $validator->replacer('elfinder', function($message, $attribute, $rule, $parameters) {
            return str_replace(':values',implode(', ', $parameters),$message);
        });

    }
protected function registerValidationRules($validator)
    {
        /**
         * elfinder validator
         */
        $validator->resolver(function($translator, $data, $rules, $messages)
        {
            return new BaseValidator($translator, $data, $rules, $messages);
        });
        $validator->replacer('elfinder_max', function($message, $attribute, $rule, $parameters) {
            return str_replace(':size',$parameters[0],$message);
        });
        $validator->replacer('elfinder', function($message, $attribute, $rule, $parameters) {
            return str_replace(':values',implode(', ', $parameters),$message);
        });

    }
protected function registerValidationRules ( $ validator ) { /**
         * elfinder validator
         */ $ validator -> resolver ( function ( $ translator , $ data , $ rules , $ messages ) { return new BaseValidator ( $ translator , $ data , $ rules , $ messages ) ; } ) ; $ validator -> replacer ( 'elfinder_max' , function ( $ message , $ attribute , $ rule , $ parameters ) { return str_replace ( ':size' , $ parameters [ 0 ] , $ message ) ; } ) ; $ validator -> replacer ( 'elfinder' , function ( $ message , $ attribute , $ rule , $ parameters ) { return str_replace ( ':values' , implode ( ', ' , $ parameters ) , $ message ) ; } ) ; }
Registers validation rules

@param \Illuminate\Validation\Validator $validator
@return void
Registers validation rules