ok
Direktori : /home2/selectio/public_html/limpiar.in.net/updates/app/Services/OTP/ |
Current File : /home2/selectio/public_html/limpiar.in.net/updates/app/Services/OTP/Twillo.php |
<?php namespace App\Services\OTP; use App\Contracts\SendSms; use Twilio\Rest\Client; class Twillo implements SendSms { public function send($to, $from, $text, $template_id) { $sid = env("TWILIO_SID"); // Your Account SID from www.twilio.com/console $token = env("TWILIO_AUTH_TOKEN"); // Your Auth Token from www.twilio.com/console $client = new Client($sid, $token); try { $client->messages->create( $to, // Text this number array( 'from' => env('VALID_TWILLO_NUMBER'), // From a valid Twilio number 'body' => $text ) ); } catch (\Exception $e) { } } }