Wednesday, 20 December 2017

Send SMS Laravel Nexmo

References

Basic Tutorial
https://laravel-news.com/sending-receiving-sms-laravel-nexmo

Basic SMS guide
https://developer.nexmo.com/messaging/sms/overview

Through Packagist guide
https://packagist.org/packages/nexmo/client

Some Problem that might occured :

cURL error 60: SSL certificate problem: self signed certificate in certificate chain

While on local-host with Laravel you can easily bypass cURL error.
navigate to Client.php file (vendor\guzzlehttp\guzzle\src\Client.php)
Change "verify" to false
$defaults = [
        'allow_redirects' => RedirectMiddleware::$defaultSettings,
        'http_errors'     => true,
        'decode_content'  => true,
        'verify'          => false,
        'cookies'         => false
    ];


No comments:

Post a Comment