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