app/Providers/ValidatorServiceProvider.php
/**
     * Bootstrap the application services.
     *
     * @param  \Illuminate\Contracts\Validation\Factory  $validator
     */
Bootstrap the application services.
@param  \Illuminate\Contracts\Validation\Factory  $validator
Bootstrap the application services . @param \ Illuminate \ Contracts \ Validation \ Factory $validator
public function boot(Factory $validator)
    {
        $validator->resolver(
            function ($translator, $data, $rules, $messages, $attributes) {
                    $rules = $this->replaceRulesExpressions($rules, $data);
                    return new Validator($translator, $data, $rules, $messages, $attributes
                );
            }
        );
    }
public function boot ( Factory $ validator ) { $ validator -> resolver ( function ( $ translator , $ data , $ rules , $ messages , $ attributes ) { $ rules = $ this -> replaceRulesExpressions ( $ rules , $ data ) ; return new Validator ( $ translator , $ data , $ rules , $ messages , $ attributes ) ; } ) ; }
Bootstrap the application services.
Bootstrap the application services .