code: 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);
      }
docs: Register package middleware.
  
  @param Router $router