app->singleton('App\ThirdPartyApi\Interfaces\AccountInterface', function() { $barobillAccountService = new BarobillAccountService(app()->make('App\Services\CallApiService')); return new BarobillAccountAdapter($barobillAccountService); }); $this->app->singleton('App\ThirdPartyApi\Interfaces\SmsInterface', function() { return new AligoSmsService(); }); } }