robincsamuel / laravel-msg91

Package for MSG91 sms API
MIT License
8 stars 12 forks source link

Adding Guzzle verify option into the constructor #17

Closed devduttabain closed 3 years ago

devduttabain commented 3 years ago

Adding Guzzle verify option into the constructor. In some local environment people get 'cURL error 60: SSL certificate problem'. that can be avoided with this option.

$guzzleVerify = config('laravel-msg91.guzzle_verify', true);
$this->guzzle = new GuzzleClient(["base_uri" => $base_uri, "verify" => $guzzleVerify]);

And to the config file...

    /* Guzzle Verify, if false there'll be no ssl checking (optional) */
    'guzzle_verify' => env('MSG91_GUZZLE_VERIFY', true),
robincsamuel commented 3 years ago

@devduttabain Sorry, I cannot merge this PR as it has a lot of other changes