protected function middleware(string $key = null, string $group = Group::DEFAULT_ID)
    {
        $middleware = $this->middleMan->getGroup($group)->get($key);
        if ($middleware) {
            $this->result = $this->then($middleware);
        }
        return $this->resultUnlessChainable();
    }
protected function middleware(string $key = null, string $group = Group::DEFAULT_ID)
    {
        $middleware = $this->middleMan->getGroup($group)->get($key);
        if ($middleware) {
            $this->result = $this->then($middleware);
        }
        return $this->resultUnlessChainable();
    }
protected function middleware ( string $ key = null , string $ group = Group :: DEFAULT_ID ) { $ middleware = $ this -> middleMan -> getGroup ( $ group ) -> get ( $ key ) ; if ( $ middleware ) { $ this -> result = $ this -> then ( $ middleware ) ; } return $ this -> resultUnlessChainable ( ) ; }
Resolve the defined middleware and include it here if it exists.

@param string|null $key
@param string $group
@return mixed
Resolve the defined middleware and include it here if it exists .