public function push(callable $middleware, $name = '')
    {
        $this->stack[] = [$middleware, $name];
        $this->cached = null;
    }
public function push(callable $middleware, $name = '')
    {
        $this->stack[] = [$middleware, $name];
        $this->cached = null;
    }
public function push ( callable $ middleware , $ name = '' ) { $ this -> stack [ ] = [ $ middleware , $ name ] ; $ this -> cached = null ; }
Push a middleware to the top of the stack.

@param callable $middleware Middleware function
@param string   $name       Name to register for this middleware.
Push a middleware to the top of the stack .