src/HandlerList.php
public function appendValidate(callable $middleware, $name = null)
    {
        $this->add(self::VALIDATE, $name, $middleware);
    }
public function appendValidate(callable $middleware, $name = null)
    {
        $this->add(self::VALIDATE, $name, $middleware);
    }
public function appendValidate ( callable $ middleware , $ name = null ) { $ this -> add ( self :: VALIDATE , $ name , $ middleware ) ; }
Append a middleware to the validate step.

@param callable $middleware Middleware function to add.
@param string   $name       Name of the middleware.
Append a middleware to the validate step .