code: public function register()
      {
          $this->app->singleton('hearthstone-api', function ($app) {
              $client = new Client();
  
              return $client->cards();
          });
  
          $this->mergeConfig();
      }
docs: Register the service provider.