src/ServiceProvider.php
protected function bootMiddleware(Router $router)
    {
        $router->aliasMiddleware('json-api', BootJsonApi::class);
        $router->aliasMiddleware('json-api.content', NegotiateContent::class);
        $router->aliasMiddleware('json-api.auth', Authorize::class);
    }
protected function bootMiddleware(Router $router)
    {
        $router->aliasMiddleware('json-api', BootJsonApi::class);
        $router->aliasMiddleware('json-api.content', NegotiateContent::class);
        $router->aliasMiddleware('json-api.auth', Authorize::class);
    }
Register package middleware.

@param Router $router