public function decorate(array $rules, Model $model = null)
    {
        $this->rules = $rules;
        $this->model = $model;

        $this
            ->replaceTranslationPlaceholders()
            ->replaceKeyPlaceholders();

        return $this->rules;
    }
public function decorate(array $rules, Model $model = null)
    {
        $this->rules = $rules;
        $this->model = $model;

        $this
            ->replaceTranslationPlaceholders()
            ->replaceKeyPlaceholders();

        return $this->rules;
    }
public function decorate ( array $ rules , Model $ model = null ) { $ this -> rules = $ rules ; $ this -> model = $ model ; $ this -> replaceTranslationPlaceholders ( ) -> replaceKeyPlaceholders ( ) ; return $ this -> rules ; }
Decorates given validation rules

@param array      $rules
@param Model|null $model     if updating, the model being updated
@return array
Decorates given validation rules