public function request(Request $request, array $rules, string $group = null, array $messages = [], $default = null): self
    {
        foreach ($rules as $param => $options) {
            $this->validateInput(
                $this->getRequestParam($request, $param, $default),
                new Configuration($options, $param, $group, $default),
                $messages
            );
        }

        return $this;
    }
public function request(Request $request, array $rules, string $group = null, array $messages = [], $default = null): self
    {
        foreach ($rules as $param => $options) {
            $this->validateInput(
                $this->getRequestParam($request, $param, $default),
                new Configuration($options, $param, $group, $default),
                $messages
            );
        }

        return $this;
    }
public function request ( Request $ request , array $ rules , string $ group = null , array $ messages = [ ] , $ default = null ) : self { foreach ( $ rules as $ param => $ options ) { $ this -> validateInput ( $ this -> getRequestParam ( $ request , $ param , $ default ) , new Configuration ( $ options , $ param , $ group , $ default ) , $ messages ) ; } return $ this ; }
Validates request parameters with the given rules.

@param Request       $request
@param AllOf[]|array $rules
@param string|null   $group
@param string[]      $messages
@param mixed|null    $default

@return self
Validates request parameters with the given rules .