FleetCart/Modules/Sms/Providers/SmsServiceProvider.php
2023-06-11 13:14:03 +01:00

27 lines
555 B
PHP

<?php
namespace Modules\Sms\Providers;
use Modules\Sms\Facades\Gateway;
use Modules\Sms\Gateways\Twilio;
use Modules\Sms\Gateways\Vonage;
use Illuminate\Support\ServiceProvider;
class SmsServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
if (! config('app.installed')) {
return;
}
Gateway::register('vonage', new Vonage);
Gateway::register('twilio', new Twilio);
}
}