app->singleton('pd.auth', function () { $this->app->configure('pdauth'); return new Client(config('pdauth')); }); } }