public function prepend($middleware)
    {
        if (is_array($middleware)) {
            $this->queue = array_merge($middleware, $this->queue);

            return $this;
        }
        array_unshift($this->queue, $middleware);

        return $this;
    }
public function prepend($middleware)
    {
        if (is_array($middleware)) {
            $this->queue = array_merge($middleware, $this->queue);

            return $this;
        }
        array_unshift($this->queue, $middleware);

        return $this;
    }
public function prepend ( $ middleware ) { if ( is_array ( $ middleware ) ) { $ this -> queue = array_merge ( $ middleware , $ this -> queue ) ; return $ this ; } array_unshift ( $ this -> queue , $ middleware ) ; return $ this ; }
Prepend a middleware to the start of the queue.

@param callable|string|array $middleware The middleware(s) to prepend.
@return $this
Prepend a middleware to the start of the queue .