src/Viserio/Component/Routing/PendingResourceRegistration.php
public function withMiddleware($middleware): MiddlewareAwareContract
    {
        $this->validateGivenMiddleware($middleware);

        $this->options['middleware'] = $middleware;

        return $this;
    }
public function withMiddleware($middleware): MiddlewareAwareContract
    {
        $this->validateGivenMiddleware($middleware);

        $this->options['middleware'] = $middleware;

        return $this;
    }
{@inheritdoc}