src/Viserio/Component/Routing/Router.php
public function resource(string $name, string $controller, array $options = []): PendingResourceRegistrationContract
    {
        return new PendingResourceRegistration(
            new ResourceRegistrar($this),
            $name,
            $controller,
            $options
        );
    }
public function resource(string $name, string $controller, array $options = []): PendingResourceRegistrationContract
    {
        return new PendingResourceRegistration(
            new ResourceRegistrar($this),
            $name,
            $controller,
            $options
        );
    }
{@inheritdoc}