Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/LaravelMsg91.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ public function __construct(){
$this->limit_credit = config('laravel-msg91.limit_credit');
$this->country = config('laravel-msg91.country');
$base_uri = config('laravel-msg91.base_uri') ? config('laravel-msg91.base_uri') : 'https://control.msg91.com/api/';
$this->guzzle = new GuzzleClient(["base_uri" => $base_uri ]);

//reading verify option from config, and passing that to the guzzle options
$guzzleVerify = config('laravel-msg91.guzzle_verify', true);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reading verify option from config, and passing that to the guzzle options

$this->guzzle = new GuzzleClient(["base_uri" => $base_uri, "verify" => $guzzleVerify]);
}


Expand Down
3 changes: 3 additions & 0 deletions src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@
/* Credit limit, if true message will be limted to 1 credit (optional) */
'limit_credit' => env('MSG91_LIMIT_CREDIT', false),

/* Guzzle Verify, if false there'll be no ssl checking (optional) */
'guzzle_verify' => env('MSG91_GUZZLE_VERIFY', true),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding guzzle verify option in config file


);