File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ public function registerWebhooks($components): void
1515
1616 $ apiKey = config ('services.mailgun.secret ' );
1717 $ domain = config ('services.mailgun.domain ' );
18+ $ scheme = config ('services.mailgun.scheme ' , 'https ' );
19+ $ endpoint = config ('services.mailgun.endpoint ' , 'api.mailgun.net ' );
1820
1921 $ webhookUrl = URL ::signedRoute ('mails.webhook ' , ['provider ' => 'mailgun ' ]);
2022
@@ -49,7 +51,7 @@ public function registerWebhooks($components): void
4951 foreach ($ events as $ event ) {
5052 $ response = Http::withBasicAuth ('api ' , $ apiKey )
5153 ->asMultipart ()
52- ->post ("https ://api.mailgun.net /v3/domains/$ domain/webhooks " , [
54+ ->post ("$ scheme :// $ endpoint /v3/domains/ $ domain/webhooks " , [
5355 'id ' => $ event ,
5456 'url ' => $ webhookUrl ,
5557 ]);
You can’t perform that action at this time.
0 commit comments