public function pushMiddleware($middleware)
    {
        if (array_search($middleware, $this->middleware) === false) {
            array_push($this->middleware, $middleware);
        }

        return $this;
    }
public function pushMiddleware($middleware)
    {
        if (array_search($middleware, $this->middleware) === false) {
            array_push($this->middleware, $middleware);
        }

        return $this;
    }
public function pushMiddleware ( $ middleware ) { if ( array_search ( $ middleware , $ this -> middleware ) === false ) { array_push ( $ this -> middleware , $ middleware ) ; } return $ this ; }
Add a new middleware to end of the stack if it does not already exist.

@param  string|\Closure  $middleware
@return \Nova\Foundation\Application
Add a new middleware to end of the stack if it does not already exist .